I am running this successfully offsite and I don't know what the test is looking for. Can someone please help me to figure out why my output is not acceptable? Thank you.
package com.codegym.task.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<0) {
System.out.println("The number is less than 5");
} else if (a-5 == 0) {
System.out.println("The number is equal to 5");
} else {
System.out.println("The number is greater than 5");
}
}
}