1. 程式人生 > >Thinking in Java-Chapter 2-創建第一個Java程序

Thinking in Java-Chapter 2-創建第一個Java程序

mat author play AS except pub ray AR think

 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 *///:~

以後可能不會寫過多的註釋了。

Thinking in Java-Chapter 2-創建第一個Java程序