Hello everyone, my program does precisely what the conditions are stated, but the Judge has a different opinion, pls gimme a hint.
package en.codegym.task.pro.task04.task0403;
import java.util.Scanner;
/*
Summation
*/
public class Solution {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int temp = 0;
while (scanner.hasNextBigInteger()){
if (scanner.hasNext("enter")){
break;
} else {
int input = scanner.nextInt();
temp+=input;
}
}
System.out.println(temp);
System.out.println("ENTER");
}
}