Look at the following declaration: String cafeName = Broadway Cafe; String str; Which of the following methods

Question:

Look at the following declaration: 

String cafeName = "Broadway Cafe";
String str;

Which of the following methods would you use to make str reference the string “Broadway”? 

StartsWith
RegionMatches
Substring
IndexOf 

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: