Reading a single char in Java -
How to enter a character from the keyboard in Java?
You can either scan the entire line:
  Scanner s = new scanner (System.in); String str = s.nextLine ();    Or you can read a single  char , you have come to know what encoding is related to: 
  Char c = (four) System.in.read ();   
Comments
Post a Comment