java中的println方法打印Date类型数据

来源:互联网 发布:桥畔译谈CIP数据 编辑:程序博客网 时间:2024/05/23 01:21
打印Date数据时,调用public void println(Object x) 这个方法,先调用String.valueOf(x)获取String,然后再调用print(String).
Prints an Object and then terminate the line. This method calls at first String.valueOf(x) to get the printed object's string value, then behaves as though it invokes print(String) and then println().
0 0
原创粉丝点击