what is wrong in my code
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 {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String s ;
int total = 0;
while(!((s = reader.readLine()).equals("sum")));
{
int i = Integer.parseInt(s);
total = total + i;
if(s.equals("sum"))
{
System.out.println(total);
System.out.println("solution"); // break;
}
//write your code here
}
}
}