下列语句的执行结果是()String str1 = "I";String str2 = "like";String str3 = "Java";System.out.println(str1 + str2 + str3);
A. I like Java
B. IlikeJava
C. I likeJava
D. Ilike Java
下列程序段中parseInt的作用是()String input = JOptionPane.showInputDialog("whats your age?");int age = Integer.parseInt(input);
A. 将字符串转化为整数
B. 将整数转化为字符串
C. 对字符串进行语法分析
D. 对整数进行语法分析
下列程序段的运行结果是()int[][] a = { { 1, 2, 3, 4 }, { 5, 6, 7, 8 }, { 9, 10, 11, 12 }, { 13, 14, 15, 16 } };int i, j, s = 0;for (i = 0; i < 3; i++) for (j = 0; j < i + 1; j++) s = s + a[i][3 - j];System.out.print(s);
A. 52
B. 36
C. 42
D. 26