下列程序的运行结果是()。
A: goodandabc
B: goodandgbc
C: testokandabc
D: testokand
A: goodandabc
B: goodandgbc
C: testokandabc
D: testokand
举一反三
- 【简答题】阅读下列程序,并写出程序运行结果。 (1)以下程序的运行结果是 。 (2)以下程序的运行结果是 。 (3)以下程序的运行结果是 。 (4)以下程序的运行结果是 。
- 阅读下列程序,并写出程序运行结果(1)若从键盘输入444、666和888,以下程序的运行结果是。(2)以下程序的运行结果是。(3)以下程序的运行结果是。(4)若从键盘输入2,以下程序的运行结果是。(5)若从键盘输入65,以下程序的运行结果是。
- 阅读以下程序,写出运行结果:以上程序运行的结果是:
- 给定以下代码,程序的运行结果是 ()public class Example {String str=new String("good");char [] ch={'a','b','c'};public static void main(String[] args) {Example ex=new Example();ex.change(ex.str, ex.ch);System.out.print(ex.str+"and");System.out.print(ex.ch);}public void change(String str,char ch[]){str="test ok";ch[0]='g';}} A: goodandabc B: goodandgbc C: test okandabc D: test okandgbc
- 下列程序的运行结果是______。 A: s=3 B: s=4 C: s=5 D: 无输出结果