Собсна, вот.
package com.javarush.task.task04.task0429;
/*
Положительные и отрицательные числа
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
//напишите тут ваш код
int z1, z2, z3;
z1 = reader();
z2 = reader();
z3 = reader();
IF(z1, z2, z3);
}
public static int reader() throws Exception{
BufferedReader reaDer = new BufferedReader(new InputStreamReader(System.in));
String s = reaDer.readLine();
int z = Integer.parseInt(s);
return z;
}
public static void IF(int a, int b, int c){
int n_otric = 0;
int n_poloj = 0;
String s_otric = "количество отрицательных чисел: ";
String s_poloj = "количество положительных чисел: ";
if (a>0 && b>0 && c>0) {
n_poloj+=3;
System.out.println(s_otric + n_otric);
System.out.println(s_poloj + n_poloj);
}
else if ((a>0 && b>0) || (a>0 && c>0) || (b>0 && c>0)) {
n_poloj+=2;
n_otric+=1;
System.out.println(s_otric + n_otric);
System.out.println(s_poloj + n_poloj);
}
else if (a>0 || b>0 || c>0) {
n_poloj+=1;
n_otric+=2;
System.out.println(s_otric + n_otric);
System.out.println(s_poloj + n_poloj);
}
else if (a>0 && b>0 && c>0) {
n_poloj+=3;
n_otric+=0;
System.out.println(s_otric + n_otric);
System.out.println(s_poloj + n_poloj);
}
else if (a<0 && b<0 && c<0) {
n_poloj+=0;
n_otric+=3;
System.out.println(s_otric + n_otric);
System.out.println(s_poloj + n_poloj);
}
else if (a==0 || b==0 || c==0);
}
}