Ask
your own question, for FREE!
Computer Science
65 Online
SourMunchkin7806:
```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!
SourMunchkin7806:
So I have no clue where to start here aha
SourMunchkin7806:
How did you do that?
Ultrilliam:
\```language code here \```
Ultrilliam:
three backticks, then the language (optional), then just put your code in between another set of backticks
SourMunchkin7806:
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!
Ultrilliam:
Yep that would be correct
SourMunchkin7806:
yesssss
SourMunchkin7806:
Ok i only got like 2 more
Ultrilliam:
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
ilovemybf:
two of my drawings i did today anyone got any ideas for wht i can draw next
4 minutes ago
29 Replies
6 Medals
JaydenL:
Hey Guys I promise I will make another singing voice recorder, but I need y'all. Please go check out my YouTube channel.
3 minutes ago
6 Replies
2 Medals
Wolf95:
Love is a trap, love hurts There is nothing good about it It makes you fall apart When you realize your truest friend is your truest enemy When you start to
1 hour ago
22 Replies
5 Medals
Subshilava:
The frequency of two alleles in a gene pool is 0.17 (A) and 0.83(a). Assume that the population is in Hardy-Weinberg equilibrium.
2 hours ago
2 Replies
0 Medals
toga:
how do you clean blood off your computer, couch, white T-shirt, and cat a who hat
5 hours ago
38 Replies
2 Medals
Subshilava:
5.5 m 3 m 17.2 m What is the surface area of the prism? 283.8m ^ 2 292.4m ^ 2 325.
6 hours ago
3 Replies
2 Medals
Wolf95:
This is an important question because my ex has been texting me saying he'll kill
6 hours ago
10 Replies
2 Medals