Hello community! I stuck with this task and need help. It looks like I accomplished the task but have problems with requirements 3 and 4. Depends on what temperature I put requirement 3 or 4 not satisfied. Please help
package en.codegym.task.pro.task03.task0301;
import java.util.Scanner;
/*
Warm or cold
*/
public class Solution {
public static void main(String[] args) {
String cold = "It's cold outside";
String warm = "It's warm outside";
int temperature = -22;
Scanner keyboard = new Scanner(System.in);
String line = keyboard.nextLine();
if (temperature < 0)
System.out.println(cold);
else
System.out.println(warm);
}
}