Skip to content

2D ArrayList #21499

Answered by fire-eggs
phd-coder asked this question in General
Discussion options

You must be logged in to vote

Your “for (int j=0; j<4;j++)” loop is making the assumption that each array inside list10[] has at least 4 elements. You should be limiting your loop to the size of the array inside list10[].

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants