Add a form of input to Java user interface

Since @kblanks removed the incorrect `user_input` method, people may want to know how they should read from the console.