Question: In a 2d array in java, how do I loop through a specific column, say i have a 3 by 3 matrix 1 3 4
In a 2d array in java, how do I loop through a specific column, say i have a 3 by 3 matrix
1 3 4
1 2 4
4 6 6
and I want to loop through the 2nd column (3,2,6) and print it. How would I do this?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
