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

Android Build a Simple Android App (retired 2014) Learning the Language Introduction to Arrays

albert higgins
albert higgins
3,839 Points

how to do task 3 for the array's module

Hi, i'm kind of stuck on task three on the arrays test. I'm not sure how to use the arrays length property as the use in class involved the other variable

2 Answers

Ivan Uvarov
Ivan Uvarov
22,403 Points

Just do like this:

int numberOfFrogs = frogNames.length;