View Single Post
  #6 (permalink)  
Old 07-07-2008, 10:22 PM
Jman Jman is offline
Member
 
Join Date: Dec 2007
Posts: 17
Jman is on a distinguished road
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 ++;


}
}

}
Reply With Quote