My code needs to get user input, and print the letter that occurred the most in that input. I know I need to do something along the lines of switching the String input into char[], but what to do after words? how to check for each character's apperance? any ideas how?
I need to do it using only loops & Wrapper classes, it's a part of an assignment so I have to be specific.
public static void main(String[] args){
int frequencyCount = 0; //count each letters frequency
char popularChar = ' '; //letter with the most frequency
for (int i = 0; i < array.length; i++){
for(int c = 0; c < array.length; c++){
frequencyCount++;
}
}