Question: In Java Please: Strings String stri - My name is Billy. String str2 My name is Billy-i How do you compare the strings above in
In Java Please:

Strings String stri - "My name is Billy." String str2 "My name is Billy-"i How do you compare the strings above in an "if statement, checking only to see if the strings Question have the same characters? Choice 1 Choice 2 Choice3 Choice 4 Choice 5 if ( str1 str2 ) iE strl.compareTo str2 if str1.equals str2)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
