Thinking in Java-Chapter 2-创建第一个Java程序

 1 import java.util.*;
 2 /**The first Thinking in Java example program.
 3  * Displays a string and today's date.
 4  * @author 12208
 5  * @author http://www.cnblogs.com/liyifaner/
 6 */
 7 public class HelloDate {
 8     /**Entry point to class & application.
 9      * @param args array of string arguments
10      * @throws exceptions No exceptions thrown
11     */
12     public static void main(String[] args) {
13         System.out.println("Hello,it's:"+new Date());
14     }
15 }/*Output:(55% match)
16 Hello,it's:Sun Apr 29 19:25:08 CST 2018
17 *///:~

以后可能不会写过多的注释了。

猜你喜欢

转载自www.cnblogs.com/liyifaner/p/8976861.html