Loading video...
QuickNotes™ 
Arrays
An array is a container that holds a list of items; the size is a fixed number.
The item can be of any user or system type.
An array can have 1 or more dimensions, 1 dimensional arrays hold a list of values, 2 dimensional arrays are used to hold data that is in a form of a table.
An arrays size cant be changed once it has been declared.
To process any array it must be processed one element at a time, by indexing the array element.
To declare an array use the following syntax:
data_type[] identifier= new data_type[Array size]; int[] list = new int[100] ; or String[] names= new String[100]; or (User class) EMP[] employees= new EMP[100] ; int[][] accidents = new int[7][24]; // 2 dimensional array
Discussion 
Please login to ask a question and view discussion.













