Hello.
I'm really sorry that I don't ask about help connected with task but why CODEGYM gives examples from BufferedReader class which starts from 9-th level
but we are on 5-th? :/
https://codegym.cc/pl/quests/lectures/pl.questcore.level09.lecture06
package pl.codegym.task.task05.task0529;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Scanner;
public class Solution {
public static void main(String[] args){
Scanner input = new Scanner(System.in);
int suma = 0;
while (true){
int liczba = input.nextInt();
suma+=liczba;
String s = Integer.toString(liczba);
if(s.equals("wyjdz"))
break;
}
System.out.println(suma);
}
}