Gentlemen, or ladies, as appropriate, let's please try to be a little subtle here. Here's a New Year's resolution for you: in the coming year, I will help people find a solution, not give them their solution.
Now, javap - what have you tried so far, and what has been the result?
hey man, Im posting the code again.I dont know why it wouldnt work on yours try looking at the end of your for loop you might accidentaly typed a semicolon on your loop. example: for(int i= 0; i < userInput.length();i++); <-------- see the semi-colon in the end?, thats wrong, that would not execute any codes under the for loop. just copy and paste the code that I wrote, then save it as the same class name "InputSub". I dont know why it shouldnt work.. or you can paste parts of this code into your codes.
public class InputSub
public static void main(String args)
Scanner sc = new Scanner(System.in);
System.out.print("Number Input: ");
String userInput= sc.nextLine();
for(int i = 0; i < userInput.length();i++)
JKP - Please keep in mind that "code" is a mass noun. It's never plural.
Saying "it won't execute any codes" is like saying "I slipped and fell into a puddle, and when I got up, I was covered with muds".
Thanks for the info jon.. Im not really that good in english so I thank you for correcting me. This site is so great. Not only you learn how to write java " code",you'll also learn some proper english. Thank you again. Code is a mass noun, never plural, got it.
I hope the code that I wrote helped our buddy javap solve his prob.