|
As psp mentioned you will need to import the java.io
and then something like this will work just fine:
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
then you can use method like readLine() to read in the input:
int input;
input = Integer.parseInt(br.readLine());
__________________
Spookster
CodingForums Supreme Overlord
All Hail Spookster
Who gave you that Ugging infraction? Yeah that's right it was me!
|