【简答题】阅读程序写结果 public class Person { String name; int age; public Person(String name, int age) { this.name = name; this.age = age; } public static void main(String[] args) { Person c = new Person("Peter", 17...
【简答题】阅读程序写结果 public class Test { public static void main(String[] args) { String[] strArr = {"1", "2", "3", "4"}; String result = ""; for (int i = 0; i < strArr.length; i++) { result +=strArr[i]; } System...
【简答题】阅读程序写结果 public class TestSwitch { public static void main(String[] args) { char ch = 'a'; switch(ch) { case 'a': case 'A': System.out.println('A'); break; case 'B': System.out.println('B'); break; def...