All pastes #344678 Raw Edit

Anonymous

public text v1 · immutable
·published 2007-02-07 22:30 UTC
rendered paste body
public void printPuzzle()
    {

String top = "";
String bottom = "";
for (int i = 0; i < GRIDSIZE; i++) {
  top += "---";
  bottom += "___";
}

        for (int x = 0; x < GRIDSIZE; x++)
        {
            String container = "";
            
                    System.out.println(top);
                for (int y = 0; y < GRIDSIZE; y++)
                {
                    container = ("| " + grid[x][y] + " |");
                    System.out.println(container);

                }
                    System.out.println(bottom);
        }
    }