The first 4 requirements are passing, but the last requirement is failing. It doesn't make sense. The solution displays text on the screen in accordance to the task conditions
package en.codegym.task.jdk13.task04.task0408;
/*
Good or bad?
*/
public class Solution {
public static void main(String[] args) {
compare(3);
compare(6);
compare(5);
}
public static void compare(int a) {
//write your code here
if (a < 5) System.out.println("The number is less than 5");
else System.out.println("The number is greater than 5");
}
}