Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static int antallVerb(String filNavn) {
- int antallVerb = 0;
- boolean correctInput = false;
- while (!correctInput)
- try {
- System.out.print("\nOppgi antall verb: ");
- antallVerb = konsoll.nextInt();
- correctInput = true;
- } catch (InputMismatchException e) {
- System.out.println("Du må oppgi et tall mellom 1 og 88");
- }
- return antallVerb;
- }
Advertisement
Add Comment
Please, Sign In to add comment