0
1 answers
2
Scanner (object name)= new Scanner(System.in);
example : Scanner sc=new Scanner(System.in);
It can be used as an alternative to BufferedReader.
and it takes input from the user.
sc.nextInt();
sc.nextFloat();
sc.nextDouble();
sc.next();
sc.nextLong(); etc.
hope this helps. :)
PraneetBala
Feb 10, '13
Log in to your account to answer this questions.