Люди добрые, что не так?)))) вывожу с новой строки, с нулем сравнила, что хочет компилятор не пойму?
package com.javarush.task.pro.task03.task0317;
import java.util.Scanner;
/*
Пищевой конвеер
*/
public class Solution {
public static void main(String[] args) {
Scanner numbers = (new Scanner(System.in));
int one = numbers.nextInt();
int two = numbers.nextInt();
int three = numbers.nextInt();
int four = numbers.nextInt();
boolean first = (one > 0);
boolean second = (two < 0);
boolean third = (three > 0);
if(first)
System.out.println(one);
if(third)
System.out.println(three);
}
}