initialize all the value of the array with 1 in java code example Example: initialize array with values java int[] arr = {3,6,9,12}; int[] arr = new int[]{1, 2, 3};