1. Arrays
An array is used to hold the more than one
number of homogeneous data.
The length of an array is established when the
array is created.
After creation, its length is fixed.
2. Array initialization
The syntax of array initialization is
datatype[] name={item1,item2,...,item n};
OR
name[index position]= item or value;
3. Accessing array elements
Array elements can be either accessed using
their index value or using the looping statements
Example
System.out.println(a[1]);
or
for(int i =0 ;some condition; i++)
{ System.out.println(a[i]);}