Get Input From User In Java Using While Loops