Question: Given two String variables, s1 and s2, to determine if they are the same length, which of the following conditions would you use? (s1.equals(s2)) (s1.length(
Given two String variables, s1 and s2, to determine if they are the same length, which of the following conditions would you use?
| (s1.equals(s2)) | ||
| (s1.length( ) == s2.length( )) | ||
| (s1.length( ).equals(s2)) | ||
| (s1.length( ).equals(s2.length( )) | ||
| length(s1) == length(s2) |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
