Question: Question 3(Multiple Choice Worth 4 points) What is the output after the following code segment is executed? String[] mascots = { Knights, Seminoles, Bulls, Gators

Question 3(Multiple Choice Worth 4 points) What is the output after the following code segment is executed? String[] mascots = \{ "Knights", "Seminoles", "Bulls", "Gators" }; int n=1; String str ="; for (String m : mascots) \{ n=m.indexof ("i")+2; str +=m mubstring(n); \} System.out.println(str); houa tslesllstors htsolesullsators ghtsnolesBullsGators StringindexOutOfBoundsException occurs
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
