Length of a Multi Dimension Array

Hi,

If I have String[][] - How can I find out the length and width quickly?

Cheers
LVL 2
amacfarlAsked:
Who is Participating?
 
CEHJConnect With a Mentor Commented:
int length = a.length;
int width = a[0].length;
0
 
CEHJCommented:
:-)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.