FAQs on the exercise Traversing 2D Arrays: Introduction
There are currently no frequently asked questions associated with this exercise – that’s where you come in! You can contribute to this section by offering your own questions, answers, or clarifications on this exercise. Ask or answer a question by clicking reply () below.
If you’ve had an “aha” moment about the concepts, formatting, syntax, or anything else with this exercise, consider sharing those insights! Teaching others and answering their questions is one of the best ways to learn and stay sharp.
Join the Discussion. Help a fellow learner on their journey.
Ask or answer a question about this exercise by clicking reply () below!
You can also find further discussion and get answers to your questions over in #get-help.
Agree with a comment or answer? Like () to up-vote the contribution!
Happy New Year everyone!
Really hoped to finish this course by the end of 2020, but made only to Learn Java[ 11 ][ 6 ] (or [ 10 ][ 5 ] when taking into account that indeces start from 0).
The third exercise:
Store the number of columns in intMatrix into a variable called columns and the number of rows in intMatrix into a variable called rows .
was a bit confusing, because I couldn’t understand why I would I do something twice (since the same thing was covered in exercises 1 and 2).
And I’m sure glad that Java wasn’t my first language to learn. There is a great deal of mindbending with all the classes, constructors, polymorphism keywords and boilerplate code.
this lesson in particular was really well fleshed out. But there is a lot of seemingly obsolete content. I reads like you try to explain the concept of nested loops 3 more times after the last lesson. I personally find it pretty easy to grasp. Maybe that is just me.
I really wished you would have put more afford like this in other more complex topics like polymorphism.
intMatrix.length and intMatrix.length do not refer to the same thing. intMatrix is an array of arrays of integers.
so intMatrix.length is the length of the “outer” array - it tells you how many arrays are in intMatrix.
intMatrix is the first array in intMatrix (meaning the array at an index of zero for intMatrix)
so intMatrix.length is the length of this “inner” array - which is how many integers there are in intMatrix