以下程序的运行结果为( )。 public class Sun { pub
问题:
以下程序的运行结果为( )。 public class Sun { public static void main(String args[ ]) { String x="A",y="B",z="C"; for(int m=1;m<=2;m++) { x=y; y=z; z=x; } System.out.println(x+y+z); } }
A.ABC
B.BCA
C.BCB
D.CBC
以下程序的运行结果为( )。 public class Sun { public static void main(String args[ ]) { String x="A",y="B",z="C"; for(int m=1;m<=2;m++) { x=y; y=z; z=x; } System.out.println(x+y+z); } }
A.ABC
B.BCA
C.BCB
D.CBC