how to set values to an array in java code example Example: int[] int[] array; // is equivalent to int array[];