@@ -0,0 +1,2328 @@
+package org.kedos.print;%0A%0Aimport java.util.Arrays;%0A%0A/**%0A * Created by shaked on 09/11/2015.%0A */%0Apublic class PrintUtils %7B%0A%0A    /**%0A     * Prints the given 2D array.%0A     *%0A     * @param array 2D array to pretty print.%0A     */%0A    public static void print2DArray(int%5B%5D%5B%5D array) %7B%0A        for (int i = 0; i %3C array.length; i++) %7B%0A            System.out.println(Arrays.toString(array%5Bi%5D));%0A        %7D%0A    %7D%0A%0A    /**%0A     * Prints the given 2D array.%0A     *%0A     * @param array 2D array to pretty print.%0A     */%0A    public static void print2DArray(long%5B%5D%5B%5D array) %7B%0A        for (int i = 0; i %3C array.length; i++) %7B%0A            System.out.println(Arrays.toString(array%5Bi%5D));%0A        %7D%0A    %7D%0A%0A    /**%0A     * Prints the given 2D array.%0A     *%0A     * @param array 2D array to pretty print.%0A     */%0A    public static void print2DArray(float%5B%5D%5B%5D array) %7B%0A        for (int i = 0; i %3C array.length; i++) %7B%0A            System.out.println(Arrays.toString(array%5Bi%5D));%0A        %7D%0A    %7D%0A%0A    /**%0A     * Prints the given 2D array.%0A     *%0A     * @param array 2D array to pretty print.%0A     */%0A    public static void print2DArray(double%5B%5D%5B%5D array) %7B%0A        for (int i = 0; i %3C array.length; i++) %7B%0A            System.out.println(Arrays.toString(array%5Bi%5D));%0A        %7D%0A    %7D%0A%0A    /**%0A     * Prints the given 2D array.%0A     *%0A     * @param array 2D array to pretty print.%0A     */%0A    public static void print2DArray(boolean%5B%5D%5B%5D array) %7B%0A        print2DArray(array, false);%0A    %7D%0A%0A    /**%0A     * Prints the given 2D array.%0A     *%0A     * @param array 2D array to pretty print.%0A     * @param useOnesAndZeroes if true, will use 1%5C0 instead of @true%5C@false.%0A     */%0A    public static void print2DArray(boolean%5B%5D%5B%5D array, boolean useOnesAndZeroes) %7B%0A        if (useOnesAndZeroes) %7B%0A            for (int i = 0; i %3C array.length; i++) %7B%0A                System.out.print(%22%5B%22);%0A                for (int j = 0; j %3C array%5Bi%5D.length; j++) %7B%0A                    System.out.print(array%5Bi%5D%5Bj%5D ? %221%22 : %220%22);%0A                    if (j != array%5Bi%5D.length - 1) %7B%0A                        System.out.print(%22, %22);%0A                    %7D%0A                %7D%0A                System.out.println(%22%5D%22);%0A            %7D%0A        %7D else %7B%0A            for (int i = 0; i %3C array.length; i++) %7B%0A                System.out.println(Arrays.toString(array%5Bi%5D));%0A            %7D%0A        %7D%0A    %7D%0A%0A%7D%0A

Add new class that helpes pretty print 2D arrays.