标签:编程 java 编程思想 think in java
public class Test{ public Test(){ System.out.println("Hello Word"); } public static void main(String[] args) { new Test(); } /** * 运行结果 Hello Word */ }
public class Test{ public Test(String msg){ System.out.println("Hello "+msg); } public static void main(String[] args) { new Test("China"); } /** * 运行结果 Hello China */ }
标签:编程 java 编程思想 think in java
原文地址:http://blog.csdn.net/ztt_1119/article/details/40736395