What is wrong with my code? :'(
package com.codegym.task.task04.task0442;
import java.io.*;
public class Solution {
public static int calcEntry = 0;
public static void main(String[] args) throws Exception {
//write your code here
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
// Store the all entry number
while(true) {
int entryNumber = Integer.parseInt(reader.readLine());
if( calcEntry == -1 )
calcEntry += entryNumber;
System.out.println(calcEntry);
break;
}
}
}