Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Java Java Arrays Iteration Review Looping over 2d arrays

Bardhyl Bytyqi
Bardhyl Bytyqi
14,558 Points

boggle

Help me.

Jenna Dercole
Jenna Dercole
30,224 Points

Hi Bardhyl,

Here's what I'll saying without giving away the answer for free: -- Because you're looping through a 2-dimensional array, the question requires the use of two different variables--one for each index in each dimension. -- It doesn't matter what variable names you use. When I loop through a 2D array, I usually use 'i' for the outer loop and 'j' for the inner loop. --If all else fails, hand-write the code on paper (or in a text editor) to make it more legible. Personally, the large blank spaces made it harder for me to read than it needs to be.

Let me know if any of that helps. Thanks!