Jump to content

how to scan a character in java


Chathuranga

Recommended Posts

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

What do you mean? Are you thinking of the Scanner class?

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...