Ребят, почему числа не суммируются? Что я упустил?
package com.javarush.task.pro.task04.task0403;
import java.util.Scanner;
/*
Суммирование
*/
public class Solution {
public static void main(String[] args) {
//напишите тут ваш код
int summa = 0;
boolean word = false;
Scanner console = new Scanner(System.in);
while (!word) {
int digit = console.nextInt();
summa += digit;
String s = console.nextLine();
word = s.equals("ENTER");
if (word = true) {
System.out.println(summa);
}
}
}
}