Question: (a) In the space provided on the Answer Sheets for this question, write the code for the predicate method 4. equals. The method returns true

 (a) In the space provided on the Answer Sheets for this

(a) In the space provided on the Answer Sheets for this question, write the code for the predicate method 4. equals. The method returns true if the instance variables of the calling object and of the other object (also of type Triplet) have matching values. If they don't, the method returns false. (b) In the space provided on the Answer Sheets for this question, write the code for the predicate method allEqual. The method returns true when all three instance variables of the calling object have the same value provided that the object calling the method is not a null Triplet. If the calling object is null or not all three instance variables are equal, the method returns false. / Code of Questions 4a and 4 b goes here public String toString) String local; local = "inti: " + intl + " "; local "int2: "+int2+" local+ "int3: "+int3; return local

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!