NoSuchElementException is thrown by the scanner when there are no more elements to read from the scanner.you will have to check if any elements exists in the scanner before retrieving the Integers using Scanner.hsNextInt()
while(tastetur.hasnextInt()){
alder = tastetur.nextInt();
}