Solved

String FirstString = "Oak Maple Pine

Question 39

Essay

String firstString = "Oak Maple Pine"
String secondString = "spruce Maple elm"
firstCompare.regionMatches(4, secondString, 7, 5)
Using the above code, what will be the Boolean value after execution of the regionMatches statement? Explain how the String s are compared using the regionMatches() method.

Correct Answer:

verifed

Verified

The regionMatches() method can be used t...

View Answer

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions