ways to create array in java code example
Example 1: java array declaration
int[] array = new int[/*size*/];
// Works for double, char, etc.
Example 2: array in java
//Metodo 1
type nome = new type[n];
//Metodo 2
type nome[];
nome = new type[n];