In this problem I want to compare the two variables int "a" and "b" with the compareTo, but there is an error. How can I fix it? Thank you for your support.
public static void main(String[] args) {
int a=5;
int b=5;
if (a.compareTo(b));
}
This is the error: "Cannot invoke compareTo(int) on the primitive type int"