Java za mlade programere (1) - Tutoriali.org
Java za mlade programere (1) - Tutoriali.org
Java za mlade programere (1) - Tutoriali.org
- No tags were found...
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
finished = true;}}return s;}public static int inInt(String prompt){// returns input intwhile(true){inputFlush();printPrompt(prompt);try{returnInteger.valueOf(inString().trim()).intValue();}catch(NumberFormatException e){System.out.println("Invalid input. Not an integer");}}}public static double inDouble(String prompt){// return input doublewhile(true){inputFlush();printPrompt(prompt);try{returnDouble.valueOf(inString().trim()).doubleValue();}catch(NumberFormatException e){