declare a array in java code example
Example 1: how to create an array in java
int[] array1 = new int[5];
String[] array2 = new String[5]
double[] array3 = new double[5]
Example 2: java array declaration
int[] array = new int[];
Example 3: array in java
type nome = new type[n];
type nome[];
nome = new type[n];
Example 4: array declaration injava
int intArray[];
or int[] intArray;
byte byteArray[];
short shortsArray[];
boolean booleanArray[];
long longArray[];
float floatArray[];
double doubleArray[];
char charArray[];
MyClass myClassArray[];
Object[] ao,
Collection[] ca;