stringLength = x.length();
String[] beautifulMind = new String[stringLength];
String bMind = Arrays.toString(beautifulMind);
bMind = bMind.toLowerCase();
int[] charCount = new int[25];
for (int i = 0; i < beautifulMind.length; i++)
{
if(bMind.charAt(i) = ("a"))
{
charCount[0] = charCount[0]++;
}
That's pretty much all the relevant code. I know bMind.charAt(i) isn't working because it needs a variable, at one point it was telling me invalid for a string and a char. I also had tried something similar to (bMind.charAt(i)).equals("a"); But that didn't work. I'm not sure exactly what would work here. If it isn't completely obvious. I want to take a string, and convert all of it to lower case, and then go through a loop to look at each letter in the sentence separately, and then add that to a count in an array, which I will later use to get statistics on all letters in the string.
Thanks.