第一章 1.1 public class Test{ public static void main(String[] args){ System.out.println("Welcome to Java !"); System.out.println("Welcome to Computer Science !"); System.out.println("Programming is fun ."); } } 1.2 public class Test{ public static void main(String[] args){ for(int i = 0;i <= 4;i++){ System.out.println("Welcome to Java !"); } } } 1.3 public class Test{ public static void main(String[] args){ System.out.println(" ]"); System.out.println(" ]"); System.out.println("] ]"); System.out.println(" ]]"); } } public class Test{ public static void main(String[] args){ System.out.println(" A"); System.out.println(" A A"); System.out.println(" AAAAA"); System.out.println("A A"); } } public class Test{ public static void main(String[] args){ System.out.println("V V"); System.out.println(" V V"); System.out.println(" V V"); System.out.println(" V"); } }
部分答案粘贴如上所示,完整答案请下载附件
|