Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 228
  • Last Modified:

Length of a Multi Dimension Array

Hi,

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

Cheers
0
amacfarl
Asked:
amacfarl
  • 2
1 Solution
 
CEHJCommented:
int length = a.length;
int width = a[0].length;
0
 
CEHJCommented:
:-)
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now