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 ...
現在アクセス不可の可能性がある結果が表示されています。
アクセス不可の結果を非表示にする