src/gui/maptool/MapTool.java
private void printHandler(ActionEvent event) {
        System.out.println(xDim + " # number of columns");
        System.out.println(yDim + " # number of rows");
        for (int y = 0; y < yDim; y++) {
            for (int x = 0; x < xDim; x++) {
                System.out.print(cells[x][y].type + ",");
            }
            System.out.println();
        }
    }
/**
     * Prints the current state of the map to stdout in
     * the correct .map format.
     */
Prints the current state of the map to stdout in
the correct .map format.
Prints the current state of the map to stdout in the correct . map format .
private void printHandler(ActionEvent event) {
        System.out.println(xDim + " # number of columns");
        System.out.println(yDim + " # number of rows");
        for (int y = 0; y < yDim; y++) {
            for (int x = 0; x < xDim; x++) {
                System.out.print(cells[x][y].type + ",");
            }
            System.out.println();
        }
    }
private void printHandler ( ActionEvent event ) { System . out . println ( xDim + " # number of columns" ) ; System . out . println ( yDim + " # number of rows" ) ; for ( int y = 0 ; y < yDim ; y ++ ) { for ( int x = 0 ; x < xDim ; x ++ ) { System . out . print ( cells [ x ] [ y ] . type + "," ) ; } System . out . println ( ) ; } }
Prints the current state of the map to stdout in
 the correct .map format.
Prints the current state of the map to stdout in the correct . map format .