Nächste Zeile Java nimmt keine Eingabe an
System.out.print("X: ");
scanner.nextLine(); //throw away the \n not consumed by nextInt()
x = scanner.nextLine();
System.out.print("Y: ");
y = scanner.nextLine();
Phuong Anh Dang