подскажите пожалуйста в чем проблема использовать именно else if ,дело в том что мы используем int.class? если не сложно распишите пожалуйста в чем именно дело
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(int.class<5){
System.out.println("The number is less than 5");
}
else if(int.class=>5){
System.out.println("The number is greater than 5");
}
}