0
public static void main(String[] args) {

      Scanner scanner = new Scanner(System.in);
       String name = scanner.nextLine(); //Nick
        int age = scanner.nextInt();// 25
        String education = scanner.nextLine(); //secondary
        int experience = scanner.nextInt(); //3
        String fusion = scanner.nextLine();// fusion dishes
// после третьего параметра idea выбрасывает ошибку InputMismatchException. не могу понять как заменить и на что переменные цифр.

1 ответ 1

0
public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String name = scanner.nextLine(); //Nick
        int age = scanner.nextInt();// 25
        scanner.nextLine();
        String education = scanner.nextLine(); //secondary
        int experience = scanner.nextInt(); //3
        scanner.nextLine();
        String fusion = scanner.nextLine();// fusion dishes
    }
1
  • 1
    Спасибо Вам большое 23 мая 2020 в 9:38

Ваш ответ

By clicking “Отправить ответ”, you agree to our terms of service and acknowledge you have read our privacy policy.

Всё ещё ищете ответ? Посмотрите другие вопросы с метками или задайте свой вопрос.