it looks right, but if I could get a tiny hint at where my bug is I would appreciate it.
package com.codegym.task.task05.task0529;
import java.io.BufferedReader;
import java.io.InputStreamReader;
/*
Console-based piggy bank
*/
public class Solution {
public static void main(String[] args) throws Exception {
//write your code here
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
int sum = 0;
while(true){
String s = reader.readLine();
if (s.equals("sum")){
break;
} else{
int i = Integer.parseInt(s);
sum += i;
}
System.out.println(sum);
}
}
}