![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
java代码
小江道理
这个作者很懒,什么都没留下…
展开
-
常用工具类整理--LocalTime
常用工具类整理–LocalTime package util; /** * @author 子夕 * @version 1.0 * @description: 实现将localdatetime 时间戳 date 互相转换 * @date 2021/12/21 11:19 */ import java.time.*; import java.time.format.DateTimeFormatter; import java.util.Date; /** * localtime 工具类 *原创 2021-12-21 15:06:41 · 158 阅读 · 0 评论 -
Java反射详解
java反射 public static void main(String[] args) throws ClassNotFoundException, InstantiationException, IllegalAccessException, NoSuchMethodException, InvocationTargetException, NoSuchFieldException { User user = null; //获取class对象 Cl原创 2021-08-03 17:54:59 · 56 阅读 · 0 评论 -
Java常用工具类整理之MathUtils
常用数字转换 /** * 四舍五入 */ public static long round(double index){ return Math.round(index); } /** * 向下取整 * @param index * @return */ public static double downInt(double index){ return Math.floor(index); } /** * 向上取整 * @param index * @return */ pub原创 2021-08-03 15:09:07 · 491 阅读 · 0 评论 -
Java常用工具类整理之时间类转换
时间常用工具类 public class DateUtil { public static String type="yyyy-MM-dd HH:mm:ss"; public static SimpleDateFormat sdf = new SimpleDateFormat(type); public static void main(String[] args) throws ParseException { String fd = getFormatDate(原创 2021-08-03 15:07:40 · 85 阅读 · 0 评论