how to declare array class in java code example
Example 1: Declare, instantiate, initialize and use a one-dimensional array
data = new Double[10];
Example 2: arrays in java
int[] intArray = new int[20];
String[] cars = {"Volvo", "BMW", "Ford", "Mazda"};