java 返回数组连续重复元素的最大次数答:public static void main(String[] args) { Integer arr[] = {1,1,3,3,3,3,3,3,3,3};maxNumRepeated(arr,3);System.out.println(max);} public static void maxNumRepeated(Integer[] a, int elem) { int cont = 1;int maxNum = 0;if (a.length == 1 && a[0].equals(elem...