Public class ScannerTest {
Public static void main(String[] args) {
// TODO automatically generates method stubs
Scanner reader = new scanner (system. in); //Construct a scanner
System.out.print ("Enter any character:");
string s = reader . nextline(); //get the input character and assign it to the string variable s.
System.out.println ("The character you entered is"+s ");
}
}