Suggestions?
Trying to write a prog that reads a line of text and outputs all the letters that occur in the text along w/the numbers of time each letter occurs
To find the letter can I use something like this:
int letterindex;
letterindex = (int) letter - (int) 'A' ;
return letterindex;
And to write out the frequencyarray:
for (int i = 0 <26; i++)
{
if (letterfrequency !=0)
System.out.println((char) (i + 65) + "" +
letterfrequency;
Anyone with better suggestions
I am trying to write this as simple as possible

