Ask
					your own question, for FREE!
					
				
				
    					Computer Science
                        46 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
						
 ihy:
From the top of a tower of height 50m, a ball is thrown vertically upwards with a certain velocity.
ihy:
From the top of a tower of height 50m, a ball is thrown vertically upwards with a certain velocity.
 ihy:
A cycle turns around a curve at miles per hour. If he turns at double the speed,
ihy:
A cycle turns around a curve at miles per hour. If he turns at double the speed, 
 ihy:
A ball is thrown vertically upwards with an initial velocity returns in 2 s. The total displacement of the ball will be? a) 22.
ihy:
A ball is thrown vertically upwards with an initial velocity returns in 2 s. The total displacement of the ball will be? a) 22.
 ihy:
Two particles A and B having different masses are projected from a tower with same speed.
ihy:
Two particles A and B having different masses are projected from a tower with same speed.
 ihy:
A train crosses a platform 100 m long in 60 seconds at a speed of 45 km / hr. The
ihy:
A train crosses a platform 100 m long in 60 seconds at a speed of 45 km / hr. The
 ihy:
I hope you guys stay safe as y'all go out for Halloween tomorrow night!
ihy:
I hope you guys stay safe as y'all go out for Halloween tomorrow night!
 sydney07:
ANYONE KNOW WHA I SHOULD DO IF IM TOO SMART FOR SCHOOL? WHILE EVERYONE IN MY MATH CLASS IS DOIN 11TH GRADE MATH I AM DOING THE PYTHAGOREAN THEROM.
sydney07:
ANYONE KNOW WHA I SHOULD DO IF IM TOO SMART FOR SCHOOL? WHILE EVERYONE IN MY MATH CLASS IS DOIN 11TH GRADE MATH I AM DOING THE PYTHAGOREAN THEROM.
					
					
				
36 minutes ago
6 Replies
1 Medal
41 minutes ago
4 Replies
1 Medal
44 minutes ago
13 Replies
0 Medals
57 minutes ago
15 Replies
1 Medal
1 hour ago
7 Replies
0 Medals
1 hour ago
1 Reply
0 Medals
4 hours ago
13 Replies
1 Medal