1 public class TestNoMain{ 2 static{ 3 System.out.println("Hello world!"); 4 System.exit(0);// 5 } 6 }
1 public class TestNoMain{ 2 static{ 3 System.out.println("Hello world!"); 4 System.exit(0);// 5 } 6 }
转载于:https://www.cnblogs.com/BenWong/archive/2012/12/28/2837626.html