Thread: Problem...
View Single Post
  #3 (permalink)  
Old 11-12-2007, 09:26 AM
unhurt unhurt is offline
Member
 
Join Date: Oct 2007
Posts: 21
unhurt is on a distinguished road
well i don't know if u like this, u can use charAt()
u got to form the loop

Code:
for (int i = 0; i<stringsize; i++) { System.out.println(userInput.charAt(i) + "\n"); }
this way it will read the char from the string by the location and then output it to the command prompt and the \n is for next line
Reply With Quote