I am a novice programmer so I could be making a big mistake and I just do not see it but this code works for all input scenarios that I have tried and yet the verification still marks it as wrong, any hints would be greatly appreciated.
package en.codegym.task.jdk13.task04.task0428;
import java.io.BufferedReader;
import java.io.InputStreamReader;
/*
Positive number
*/
public class Solution {
public static class number{
public static int count = 0;
}
public static void main(String[] args) throws Exception {
//write your code here
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String num1 = reader.readLine();
String num2 = reader.readLine();
String num3 = reader.readLine();
int aNum = Integer.parseInt(num1);
int bNum = Integer.parseInt(num2);
int cNum = Integer.parseInt(num3);
int[] arr = new int[3];
arr[0] = aNum;
arr[1] = bNum;
arr[2] = cNum;
/*if((aNum <= -1) && (bNum <= -1) && (cNum <= -1)){
System.out.println("0");
}
else if((aNum >= 1) && (bNum >= 1) && (cNum >= 1)){
System.out.println("3");
}
else{*/
for(int i = 0;i < arr.length;i++){
if((arr[i] >= 1) && (arr[i] != 0)){
number.count = number.count + 1;
}
else{
System.out.println();
}
}
System.out.println(number.count);
}
//}
}