public void displayReflection(int img[][]) {

        for (int i = 0; i < img.length; i++) {

            for (int j = 0; j < img[i].length; j++) {

                //---- Top ---//
                if (i == 0) {
                    int a = i+2;
                    if(a>9) a=9;
                    System.out.format("%3d ",img[a][j]);
                    
                } //--- Left ----//
                else if ((i != 0) && (j == 0)) {
                    int a = j+2;
                    System.out.format("%3d ", img[i][a]);
                    
                } //--- Bottom -----//
                else if (i == img.length - 1) {
                    int a = i-2;
                    System.out.format("%3d ", img[a][j]);
                    
                } //---- Right ----//
                else if ((i > 0) && (j == img.length-1)) {
                    int a = j-2;
                    System.out.format("%3d ", img[i][a]);
                    
                }
                //----- inside ----//
                else {
                    //System.out.format("%3s ", "x");
                    System.out.format("%3d ", img[i][j]);
                }
            }

            System.out.println();

        }
        System.out.println();
    }