Chathuranga 0 Posted June 14, 2010 Report Share Posted June 14, 2010 (edited) I want to know how to scan a character in java? please help me.why we create a object for a scanner class?Scanner input =new Scanner(System.in);int number=input.nextInt();why we can't put static method for that?static Scanner(System.in) Edited June 15, 2010 by Chathu Quote Link to post Share on other sites
Synook 47 Posted June 14, 2010 Report Share Posted June 14, 2010 What do you mean? Are you thinking of the Scanner class? Quote Link to post Share on other sites
Chathuranga 0 Posted June 15, 2010 Author Report Share Posted June 15, 2010 What do you mean? Are you thinking of the Scanner class?yes Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.