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