注意:此页面搜索的是所有试题
题目内容
(河南农业大学-JAVA语言)
请问,以下哪些语句用于初始化一个数组?
请选择所有正确答案:
(A) int dayhigh={24,23,24,25,25,23,21};
(B) int dayhigh[]={24,23,24,25,25,23,21};
(C) int []dayhigh={24,23,24,25,25,23,21};
(D) int dayhigh[]=new int{24,23,24,25,25,23,21};
请选择所有正确答案:
(A) int dayhigh={24,23,24,25,25,23,21};
(B) int dayhigh[]={24,23,24,25,25,23,21};
(C) int []dayhigh={24,23,24,25,25,23,21};
(D) int dayhigh[]=new int{24,23,24,25,25,23,21};
参考答案