[Java] Class InputHandler.next_word