Below, there is a code that calculates Fibonacci numbers and their sum in the infinite cycle. Using the debugger, find the fibonacciSum value when the variable fibonacciCurrent becomes greater than 1000 for the first time.
class Main {
public static void main(String[] args) {
int fibonacciPrevious = 1;
int fibonacciCurrent = 1;
int fibonacciSum = fibonacciPrevious + fibonacciCurrent;
while (true) {
int tmp = fibonacciPrevious + fibonacciCurrent;
fibonacciPrevious = fibonacciCurrent;
fibonacciCurrent = tmp;
fibonacciSum += fibonacciCurrent;
}
}
}