private static int MoreThanHalfNum_Solution(int[] array) { HashMap<Integer,Integer> map=new HashMap<Integer, Integer>(); for(int i=0;i<array.length;i++){ if (map.containsKey(array[i])){ map.put(array[i],map.get(array[i])+1);//如果存在改数字,统计值+1 ...