xxxxxxxxxx
int age = scanner.nextInt();
scanner.nextLine(); //Ez fogja az ottmaradt sorvége jelet beolvasni
String name = scanner.nextLine();
xxxxxxxxxx
Scanner scanner = new Scanner(System.in);
System.out.println("What's your name?");
String name = scanner.nextLine();
System.out.println("What's your year of birth?");
int yearOfBirth = scanner.nextInt();
xxxxxxxxxx
String line = scanner.nextLine();
int age = Integer.parseInt(line); // Exception-t