Почему сумма выводится на экран 2 раза?
package com.javarush.task.pro.task04.task0403;
import java.util.Scanner;
/*
Суммирование
*/
public class Solution {
public static void main(String[] args) {
Scanner console = new Scanner(System.in);
int a = console.nextInt();
int b = console.nextInt();
int c = console.nextInt();
int d = console.nextInt();
int sum = (a + b + c + d);
boolean isenter = false;
while (!isenter)
{
String enter = console.nextLine();
isenter = enter.equals("ENTER");
System.out.println(sum);
}
}
}