Is there some reason you're not just using a Scanner( System.in ) to get user input from the keyboard?