Ask
your own question, for FREE!
Computer Science
35 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
SnowyBreaks:
what's your guy's thoughts on the supposedly "alien" thing"?
scarlxrd0412:
yo chat i'm writing another song I need some feedback on the lyrics. Drifting fee
Luna34:
Poem of the day: We wait... The world is not a gentle place, Beneath its smile, a fractured face.
gelphielvr:
(creative) I need to make a poster for an imaginary job. Does anyone have any ide
danielfootball123:
Does anyone know why this is happening and how to fix the problem. I don't need y
xXAikoXx:
Activity: Business E-mail Write a business email for the following scenario. Pretend that you are the administrative assistant for the marketing department
xXAikoXx:
A fiction book's main ideas involve the ____. A. a character's conflict or problem B.
xXAikoXx:
What needs to be done before choosing and reading a book? A. Make sure it is nonfiction.
3 hours ago
19 Replies
1 Medal
1 hour ago
6 Replies
1 Medal
7 hours ago
9 Replies
1 Medal
51 minutes ago
7 Replies
2 Medals
58 minutes ago
32 Replies
4 Medals
18 hours ago
3 Replies
0 Medals
20 hours ago
3 Replies
1 Medal
1 day ago
2 Replies
1 Medal