heres my code:
public class auditorForum {
int pastMonthSpend;
public auditorForum(int spending){
spending = pastMonthSpend;
}
public static void main(String[] args) {
auditorForum October = new auditorForum(1433);
if (October >= 1000) {
if (October <= 1500){
System.out.println("Eligible");
} else {
System.out.println("Ineligible");
}
}
}
}
It results in
auditorForum.java:9: error: bad operand types for binary operator '>='
if (October >= 1000) {
^
first type: auditorForum
second type: int
1 error
and im not sure what the fix is, ive tried making separate values for the minimum and maximum values (1000 and 1500) but no