|
Hi everyone who responded to my call for help.
Norm: The value 97 was the ASCii for a but because I had +1 it turned the value to 98 which is b.
Jeremy you said that I have to you have to char++ somewhere. I tiried everywhere. where do I use char++.
changed the code just a bit.
public class Alphabet {
public static void main (String [] args)
{
char[]myLetters = new char[26];
for (int index = 0; index < myLetters.length; index++)
{
myLetters[index] = 'a';
}
for (int index = 0; index < myLetters.length; index++)
{
System.out.println(myLetters[index]);
index ++;
}
}
}
|