Someone
public text v1 · immutableprivate BigInteger lueIsoLuku(Scanner nappis) {
BigInteger paluu = null;
while(paluu == null) {
try {
paluu = nappis.nextBigInteger();
} catch (InputMismatchException ime) {
System.out.println("Epäkelpo isoluku!");
nappis.nextLine();
}
}
return paluu;
}