题目内容

补齐代码以生成’A’-’Z’之间随机的一个字符:char c =(char)(65+);

查看答案
更多问题

补齐下面代码:int[] ia={3,1,7,5,2};Arrays.(ia);//对数组ia进行排序(升序)System.out.println(Arrays.(ia));//输出该数组所有元素

What is the result?Correct Answers: ()

A. done
B. one two done
C. one two three done
D. one two three two three done
E. Compilation fails.

What is the result?Correct Answers: ()

A. 0 2 4
B. 0 2 4 5
C. 0 1 2 3 4
D. 编译失败
E. 程序运行时抛出一个异常

哪两个语句能实例化一个数组变量?()Correct Answers: ()

A. int[] ia = new int[15];
B. float fa = new float[20];
C. char[] ca = "Some String";
D. Object oa = new float[20];
E. int ia[][] = {4,5,6}, {1,2,3};

答案查题题库