Chathuranga Posted June 14, 2010 Share Posted June 14, 2010 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) Link to comment Share on other sites More sharing options...
Synook Posted June 14, 2010 Share Posted June 14, 2010 What do you mean? Are you thinking of the Scanner class? Link to comment Share on other sites More sharing options...
Chathuranga Posted June 15, 2010 Author Share Posted June 15, 2010 What do you mean? Are you thinking of the Scanner class?yes Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.