[Java] Class InputHandler