I have the int cannot be dereferenced error in the below code where I have //error is here. I\'m confused because the variable b is used to reference a spot in the empl arr
getEmployeeNumber() apparently returns an int.
getEmployeeNumber()
int
int is a primitive type, not an object. Therefore, you cannot call methods like compareTo() on it.
compareTo()