A tree view of the P5 directory should look like this: P5/ ├── Chihiro.png ├── Haku.png ├── Yubaba.png ├── Success.png ├── Maze1.txt ├── Maze2.txt ├── Maze3.txt ├── Maze4.txt ├── Maze5.txt ├── bin/ └── src/ └── Maze.java |
public class P5 { // Class variables public static Maze maze; public static int mazeWidth; public static int mazeHeight; public static void main(String[] args) { // Create maze String fileName = args[0]; System.err.println("Maze name: " + fileName); // Get dimensions maze = new Maze(fileName); mazeWidth = maze.getWidth(); mazeHeight = maze.getHeight(); System.err.println("Maze width: " + mazeWidth); System.err.println("Maze height: " + mazeHeight); // Add code to move around maze } }Once all files are in place, follow these steps: