When comparing two quantities of type int to see whether they are
“equal,” should you use == or the method equals ?
Write a method definition for a method called isGrowthRateLargerThan
that could be added to the class Species in Listing 5.19. This method has
one argument of type Species. The method returns true if the receiving
object has a larger growth rate than the growth rate of the argument;
otherwise, it returns false.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here