Use of a scanner without the "quirk" needed to mix numeric and text input. Use of a scanner with the "quirk" needed to mix numeric and text input.
String name = scanner.nextLine(); //nextLine gets the input from the console System.out.println("How old are you? "); int age = scanner.nextInt(); scanner.nextLine ...
一部の結果でアクセス不可の可能性があるため、非表示になっています。
アクセス不可の結果を表示する