Maze - line = line+array[r][c]; }...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
public class Maze{ int rows; int cols; char [ ] [ ] array; public Maze(int rs, int cs, String cells){ // fill in your code here } public void print( ){ for(int r = 0; r<rows; r++){ String line = ""; for(int c = 0; c<cols;c++){
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: line = line+array[r][c]; } IO.outputStringAnswer(line); } } public boolean solve(int startr, int startc, int endr, int endc){ return false;// replace this line with your code } }...
View Full Document

This note was uploaded on 07/12/2009 for the course CS 111 taught by Professor Hari during the Fall '08 term at Rutgers.

Ask a homework question - tutors are online