MyInput is a self made class, not part of any Java lib.
You should try one of the following:
Scanner scan = new Scanner(System.in);
String mySentence = scan.nextLine();
which would direct the System.in (which is the standard input -> keyboard) into a scanner which you can read from.
another version:
BufferedReader oReader = new BufferedReader(new InputStreamReader(System.in));
String strRead = oReader.readLine();
...which uses a BufferedReader to hold the input for you. You can then read from it.
Both versions need some
try/catch
around it, eclipse will tell you and take care of that. That is needed as the operation can fail and your code would not be valid if the operation fails.