private BigInteger lueIsoLuku(Scanner nappis) { BigInteger paluu = null; while(paluu == null) { try { paluu = nappis.nextBigInteger(); } catch (InputMismatchException ime) { System.out.println("Epäkelpo isoluku!"); paluu = null; } } return paluu; }