Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Trevyn Mikesell
1,075 PointsOH MY GOD
String[]frogNames = {"mike","ben","kris"};
String bestFrog = frogNames[0];
int numberOfFrogs = (frogNames.length);
String lastFrog = frogNames[3];
It just says try again
1 Answer
Stone Preston
42,016 Pointsyour index for the lastFrog is incorrect. Remember that array indexes start at 0, so the first item in the array is at index 0, the second item in the array is at 1, and the third item (the last item) is at index 2