I have problem with 3 i 5 points with version 2 Version 1 package pl.codegym.task.task04.task0428; /* Liczba dodatnia */ import java.io.*; import java.util.ArrayList; public class Solution { public static void main(String[] args) throws Exception { //tutaj wpisz swój kod BufferedReader r = new BufferedReader(new InputStreamReader(System.in)); int a = Integer.parseInt(r.readLine()), b = Integer.parseInt(r.readLine()), c = Integer.parseInt(r.readLine()); ArrayList<Integer> lista = new ArrayList<Integer>(); lista.add(a); lista.add(b); lista.add(c); int count=0; for(int i = 0; i < lista.size(); i++) { if(lista.get(i) > 0 ) { count++; } } System.out.println(count); } } Version 2 package pl.codegym.task.task04.task0428; /* Liczba dodatnia */ import java.io.*; import java.util.ArrayList; public class Solution { public static void main(String[] args) throws Exception { //tutaj wpisz swój kod BufferedReader r = new BufferedReader(new InputStreamReader(System.in)); int a = Integer.parseInt(r.readLine()), b = Integer.parseInt(r.readLine()), c = Integer.parseInt(r.readLine()); ArrayList<Integer> lista = new ArrayList<Integer>(); lista.add(a); lista.add(b); lista.add(c); int count=0; for(int i = 0; i < lista.size(); i++) { if(lista.get(i) > 0 ) { count=+1; } } System.out.println(count); } }