How do you get input from a user in Java like you can in C++ with "cin >> var;"?
Printable View
How do you get input from a user in Java like you can in C++ with "cin >> var;"?
or by using System.inCode:// you can either use the arguements passed in
// on the command line
class X{
public static void main(String[] args){
for(int i = 0; i < args.length; ++i){
System.out.println(args[i]);
}
}
}
Oh.. thanx!