Java 获取当前时间:简单代码示例
import\ java.util.Date;\npublic\ class\ CurrentTime\ {\n\ \ public\ static\ void\ main(String[]\ args)\ {\n\ \ \ \ Date\ currentTime\ =\ new\ Date();\n\ \ \ \ System.out.println("当前时间:"\ +\ currentTime);\n\ \ }\n}
原文地址: https://www.cveoy.top/t/topic/p26u 著作权归作者所有。请勿转载和采集!