raw input scanner wrapper class for java