![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
java
乘风破浪愿你更强
这个作者很懒,什么都没留下…
展开
-
Java中Date的parse,format的方法使用
Date date = new Date(); //获取当前系统时间,格式为: Thu Nov 01 18:27:06 CST 2018format: 按指定的目标格式把Date对象转换为Stringparse: 按指定的源格式把String转换为Date对象public class test { public static void main(String[] args) throws ParseException { Date date = new Date();原创 2021-01-08 15:07:46 · 951 阅读 · 0 评论 -
String,Object中equals源码的对比
都说equals是比较两个数值字面值今天遇到个有趣的事发现两输相比居然为flase先看代码class Cat { public Cat(String name) { this.name = name; } private String name; public String getName() { return name; } public void setName(String name) { th原创 2020-09-30 11:13:16 · 103 阅读 · 0 评论