Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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