how to set an array of size 3 in j code example Example: java array declaration int[] array = new int[/*size*/]; // Works for double, char, etc.