Update Shell.java

Change work with Scanner.