It is not good practice to use infinite while loops. Use a control variable!

String cont = "yes"; //Control variable
Scanner someScanner = new Scanner(System.in); //Scanner object...