Yup. System.in is the console input stream.
It's common practice to use this with the Scanner class to handle some basic parsing of the input...
Scanner sc = new Scanner(System.in);
String s = sc.nextLine();
or...
int i = sc.nextInt(); // etc etc - see API doc for details of all options
JamesCherrill
... trying to help
8,521 posts since Apr 2008
Reputation Points: 2,583
Solved Threads: 1,456
Skill Endorsements: 30
Question Answered as of 2 Years Ago by
JamesCherrill
and
sourabh17