• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
君子以自强不息
Hello World!
博客园 | 首页 | 新随笔 | 新文章 | 联系 | 订阅 订阅 | 管理
上一页 1 2 3 4 5 6 ··· 16 下一页

2020年10月28日

Oracle 时间格式化异常:无效数字
摘要: Oracle 时间格式化 无效数字 字段名 类型 备注 flightDate varchar 格式:yyyy-mm-dd hh24:mi:ss 查询语句: select TO_CHAR(xxx.flightDate,'hh24:mi') from xxx 查询结果: SELECT TO_CHAR(H 阅读全文
posted @ 2020-10-28 18:40 Hello_xzy_World 阅读(1685) 评论(0) 推荐(0)
 
 

2020年10月26日

Maven库镜像
摘要: <?xml version="1.0" encoding="UTF-8"?> <!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the 阅读全文
posted @ 2020-10-26 21:01 Hello_xzy_World 阅读(355) 评论(0) 推荐(0)
 
 

2020年9月17日

字符串 & 堆 & 方法区
摘要: 字符串 & 堆 & 方法区 1. 问题引入 package com.learn.java; /** * @author xzy * @date 2020-09-17 22:33 * 说明:字符串 & 堆 & 方法区 */ public class Main { public static Strin 阅读全文
posted @ 2020-09-17 23:53 Hello_xzy_World 阅读(508) 评论(0) 推荐(0)
 
 

2020年9月11日

使用 Java Stream 实现集合排序
摘要: 排序集合中的对象 1.源码介绍 1.1 Stream sorted() 源码查看: /** * Returns a stream consisting of the elements of this stream, sorted * according to natural order. If th 阅读全文
posted @ 2020-09-11 13:06 Hello_xzy_World 阅读(1226) 评论(0) 推荐(0)
 
 

2020年9月9日

不可变对象
摘要: 可变性最小化 1. 不可变类的概念 **不可变类**是指其实例不能被修改的类——实例包含的信息必须在创建实例的时候就提供,并且在对象的整个生命周期(lifetime)内固定不变。在 Java 类库中就有许多这样的不可变类,例如 String、BigDecimal、BigInteger、基本类型的包装 阅读全文
posted @ 2020-09-09 22:55 Hello_xzy_World 阅读(431) 评论(0) 推荐(0)
 
 

2020年9月8日

BigDecimal 类的 compareTo() 和 equals()方法
摘要: BigDecimal 类的 compareTo() 和 equals()方法 1. compareTo()源码 /** * Compares this BigDecimal with the specified BigDecimal. * Two BigDecimal objects that ar 阅读全文
posted @ 2020-09-08 16:00 Hello_xzy_World 阅读(1152) 评论(0) 推荐(0)
 
 

2020年8月27日

使用 Calendar 计算时间
摘要: 使用 Calendar 计算时间 一. 类型转换 1.1 Date → Calendar public Calendar date2Calendar(Date date){ Calendar calendar = Calendar.getInstance(); calendar.setTime(da 阅读全文
posted @ 2020-08-27 20:06 Hello_xzy_World 阅读(1102) 评论(0) 推荐(0)
 
Java Calendar 日期“误差”问题
摘要: 使用Calendar计算日期需要注意的问题 1. Calendar.getInstance()方法 相关源码: Gets a calendar using the default time zone and locale. The Calendar returned is based on the 阅读全文
posted @ 2020-08-27 18:32 Hello_xzy_World 阅读(774) 评论(0) 推荐(0)
 
 

2020年8月25日

获取系统当前日期
摘要: 获取系统当前日期 有些时候,我们只需要获取当前的年月日信息,在一些老的系统中,可能使用如下语句: public class Main { public static void main(String[] args) { Date today = new Date(); today.setHours( 阅读全文
posted @ 2020-08-25 15:23 Hello_xzy_World 阅读(307) 评论(0) 推荐(0)
 
 

2020年8月18日

拼接String集合中的字符串_基于Stram
摘要: 拼接String集合中的字符串 现有字符串集合 “张三” 、“李四” 、“王五”、“”、null,现需要将集合中的字符串以逗号隔开,拼接成一个字符串。 public class Main2 { public static void main(String[] args) { Set<String> 阅读全文
posted @ 2020-08-18 10:58 Hello_xzy_World 阅读(467) 评论(0) 推荐(0)
 
 
上一页 1 2 3 4 5 6 ··· 16 下一页

公告


博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3