Reading input should be done from keystrokes at the command line of type String, as in the method declaration:

public static void main(String args[]) {                }