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

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!