Multidimensional Arrays lengths in Java

0 votes
How can I determine the lengths of a multidimensional array where the indices are not equal? For example, this is what I have

I need to locate the numbers "6" and "4" without really hard-coding the indices.

I can find 6 using pathList.length, but how to do the same with 4?
Aug 8, 2022 in Java by krishna
• 2,820 points

edited 5 days ago 7 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP