Ask
your own question, for FREE!
Computer Science
9 Online
```c String[] mascots = { "Knights", "Seminoles", "Bulls", "Gators" }; int n = −1; String str = ""; for (String m : mascots) { n = m.indexOf("l") + 2; str += m.substring(n); } System.out.println(str); ``` nssa ightstors nightsssators KnightseslsGators StringIndexOutOfBoundsException occurs
Still Need Help?
Join the QuestionCove community and study together with friends!
So I have no clue where to start here aha
How did you do that?
\```language code here \```
three backticks, then the language (optional), then just put your code in between another set of backticks
Ohhh ok next time aha...anyways my guess for this would be the third option
Still Need Help?
Join the QuestionCove community and study together with friends!
Yep that would be correct
yesssss
Ok i only got like 2 more
Alrighty
Can't find your answer?
Make a FREE account and ask your own questions, OR help others and earn volunteer hours!
Join our real-time social learning platform and learn together with your friends!
Join our real-time social learning platform and learn together with your friends!
Latest Questions
Kimmee1001:
Who or what is ultimately responsible for Romeo and Juliet's deaths?
EdwinJsHispanic:
is it normal to have high expectations, like expecting your partner to have time
gelphielvr:
Advice for cramming 70 vocab terms each week? Taking med term this year and we have to memorize about 70+ vocab terms per week and im having trouble studyin
EdwinJsHispanic:
I lowk need help deciding what I should write/type on this essay about why teache
GRIZZLEY19:
Let me know what y'all think about the story Image waking up and seeing a family in the dark.
VERNEISH:
Two objects are moving along separate linear paths where each path is described by position, d, and time, t.
10 hours ago
1 Reply
0 Medals
1 day ago
4 Replies
1 Medal
1 day ago
4 Replies
0 Medals
14 hours ago
3 Replies
0 Medals
22 hours ago
22 Replies
6 Medals
1 week ago
1 Reply
0 Medals