get an int input from user
807598Oct 31 2006 — edited Oct 31 2006System.out.println("Enter number")
im trying to retrieve the number during running the program
i know in C++ its
cin>>x;
how is it done in java ???
I have tried
int input = Integer.parseInt(args[0]);
but that wont work becuase in this way im not allowing the user to enter multiple number while the program is running
so basically .. what is : cin>>x in java ....
and i also want to ask the user to enter a name .. multiple time
thank you guys