arr in java code example
Example 1: java array declaration
int[] array = new int[/*size*/];
// Works for double, char, etc.
Example 2: Declare, instantiate, initialize and use a one-dimensional array
data = new Double[10];
int[] array = new int[/*size*/];
// Works for double, char, etc.
data = new Double[10];