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