Java   View all facts   Glossary   Help
object > array > multidimensional array
Next arrayarray of numbers    Uparray

multidimensional array comparison table
Subject is a kind of have example has definition create by
arrayobject
//the following sums all the elements of an integer array:
for(int i = 0; i < anIntArray.length; i++)
{
sum += anIntArray[i];
}
A collection of data items that are all of the same type, in which each item's position is uniquely designated by an integer
  • declaring and initializing it such that it is created whenever execution enters a particular block, or, in the case of an instance variable, when an instance is created, for example:
    String aString = "some text";
  • or by declaring it and initializing it later using the new operator, for example:
    String aString;
    aString = new String("some text");
multidimensional arrayarray
An array of the days of the year grouped into weeks
int[][] dayValue = new int[52][7]
 declaring an array of arrays

Next arrayarray of numbers    Uparray