其中包含数组自增
/**
* @Author: Vivienne
*/
import java.util.Scanner;
public class 字符统计 {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
String a= scanner.next();
int arr[]=new int[26];
for (int i = 0; i < a.length(); i++) {
arr[a.charAt(i)-'A']++;
}
int max=0;
for (int i = 0; i < arr.length; i++) {
if(arr[i]>max){
max=arr[i];
}
}
System.out.println((char)arr[max]+'A');
}
}