Question: Implement the method isEqual() to check if two Strings match. Do not use == operator to compare the two Strings directly. String inputs are case
Implement the method isEqual() to check if two Strings match. Do not use == operator to compare the two Strings directly. String inputs are case sensitive.
![public class String Equal { public static void main(String[] args) { }](https://dsd5zvtm8ll6.cloudfront.net/images/question_images/1706/2/5/4/95965b3626f6e9ef1706254958301.jpg)
public class String Equal { public static void main(String[] args) { } 1 System.out.println("false == " + is Equal("LIFEISGOOD", "lifeisgood")); System.out.println("true == " + is Equal("lifeisgood", "lifeisgood")); System.out.println("false == " + is Equal("life is good", "lifeisgood")); public static boolean is Equal(String text1, String text2) { TODO check if two Strings text1 and text2 equal in value. Do not use the operator. The texts are case sensitive.
Step by Step Solution
3.43 Rating (143 Votes )
There are 3 Steps involved in it
The image you provided contains a template for a Java class called StringEqual In this class there i... View full answer
Get step-by-step solutions from verified subject matter experts
