I have here a code that will count the accurrence of the given character in a string, but my code below just search the first given character like for example I entered AE then it will only search A. Can someone help so that it will also count the second char. Thanks!
input sentence: java sentence
enter the letters: (No spaces) AE
Output:
A=2
E=3