Проверял свой код в IDEA все считает, а здесь нет. Как так?
package com.javarush.task.pro.tas04.task0403;
import java.util.Scanner;
/*
Суммирование
*/
public class Solution {
public static void main(String[] args) {
//напишите тут ваш код
Scanner console = new Scanner(System.in);
boolean isExit = false;
int result = 0;
int a = console.nextInt();
while(!isExit){
String s = console.nextLine();
isExit = s.equals("ENTER");
result += a;
}
System.out.println(result);
}
}