Write a java program that reads 12 numbers from keyboard Into an array of type
int(} The output te to be a two-column ltot.( a 2-D array) The first column to a list of
the different numbers In the array. The second column Is the count of the number of
occurrences of each number. The list should be sorted based on the numbers In the
first column, largest to smallest.
输入的代码如下:
int arr = new int[12];
Scanner reader=new Scanner(System.in);
for(int n=0;n<12;n++){
arr[n]=reader.nextInt();
}
排序的代码等你采纳本回答后帮你补充