Java Arrays
Java Arrays
Properties:
* Array fixed in size
* Insertion order
* contigeous memory locations
* allows duplicate values
* by default stores unordered list.
Types of arrays:
* [] are signature of the array
* based on no.of [] used to create an arrays
1.One-Dimensional Arrays(1D arrays)
2.Multi-Dimensional (2D, 3D,...)
One-Dimensional Array:
* It can store one row of elements
* represent "list"
syntax:
ex:
int arr[]=new int[5];