下列数组的声明有哪些是对的? A. int[] a = {"1","2"}; B. int a[]= newint[3];
C. int[] a; a = {1,2,3,4,5}; D. int[] a=newint[3]{1,2,3};
8.以下代码的输出结果是(A).
public class Test {
public static void main (Stringll args) (
double[] price=new double[5]; price [0]-98.10; price [1]=32,18; price 12]-77.74;
for (int1-0;1<5;1++) {
System.out.print( (int) price [1]+ " "):
}
A. 98 32 77 0 0 B.98 327800 C. 98 32 78 D. 编译出错