Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Exercise 3 Add an equals instance method to the IntList class, so that x . equals ( y ) returns true if the IntList x
Exercise Add an equals instance method to the IntList class, so that equals returns true if the IntList and the IntList have exactly the same integers in the same order and returns false otherwise. It should be true that equals is always equivalent to equals It should also be true that if then equals although the reverse should not necessarily be true.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started