Update Shell.java

around 60% complete (it can't handle stdin yet) 
please take a look :)