java array in arrat code example
Example 1: array in java
int[] storer = {10,85,62};
System.out.println(storer[0]);
Example 2: array in java
// datatype var = new datatype[size]
int[] arr = new int[10];
// OR
int arr[] = new int[10];
int[] storer = {10,85,62};
System.out.println(storer[0]);
// datatype var = new datatype[size]
int[] arr = new int[10];
// OR
int arr[] = new int[10];