Tuesday, December 2, 2014

Arrays Classification of Arrays

Classification of Arrays

Introduction: Classification of Array

In Java an array can be one dimensional or multi-dimensional.  A one dimensional array is an array of values like {1, 2, 3}.  A multi-dimensional array is an array of arrays like {{1, 2,}, {3, 4}, {5, 6}}.  An array in Java can have any number of dimensions.  A two dimensional array is an array of arrays.  A three dimensional array is an array of arrays of arrays. Typically a multi-dimensional array is defined as a matrix with all of the sub-arrays having the same length.  However, this is not a requirement of the Java language.
Classification of Array

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.