I am a newbie in Java, and currently dealing with a code that implements array.
Scanner sc= new Scanner(System.in);
String str=sc.nextLine();
int count[]= new int[25];
int len = str.length();
// Initialize count array index
for (int i = 0; i < len; i++)
{count[str.charAt(i)]++; } //This line is the issue.
I want to know if charAt() returns char value then how count[] (integer array)can store that, and if it does then how. I have extracted the source code from this linkenter link description here
Thank You.