public class Shuzu {
public static void main(String arg[]) {
printArray(new int[] { 1, 2, 3 }); }public static void printArray(int[] arr) {
System.out.print("["); for (int i = 0; i < arr.length; i++) { if (i == arr.length - 1) { System.out.println(arr[i] + "]"); } else { System.out.print(arr[i] + ", "); } } }}