字符串的常用拼接方法 英雄者,胸怀大志,腹有良谋,有包藏宇宙之机,吞吐天地之志者也。------《三国演义》(一)使用“+”号拼接 String str1="hello"; String str2="world"; System.out.println(str1+str2);输出:helloworld这里需要注意,当其中一个对象为空时,使用“+”号会把null转换成“null”字符串拼接到一起String str1=null;String str2="world";System.o.
LocalDate的常用方法介绍 LocalDate和LocalDateTime的常用方法介绍 Duration或ChronoUnit 计算时间间隔 ,获取某年第一天、最后一天,某年某月第一天,最后一天