java中关于数组的一道题静态转动态答:假如没有猜错的话:frequency : 答案 answers :学生选择的答案 你想对学生的回答做统计 public static void main(String[] args) { int[] frequency = new int[6]; int[] answers = { 3, 1, 2, 5, 4, 2, 2, 3, 4, 5, 1, 2, 3, 4, 2, 1, 3, 2, 4, 2 }; ...
java,判断数组内数值为1还是0~通过前三个数值,判断后面的,不显示结果...答:代码如下:public class TestArray { public static void main(String[] args){ TestArray ta = new TestArray();int arrayLength = 5;String arrayB[][] = {{"1","0","1"},{"1","1","1"},{"0","0","1"},{"1","0","0"},{"1","1","0"}};String arrayA[][] =...