Current Forum: Homework 2 Forum |
Date: Sun Sep 23 2001 1:54 pm |
Author: Loving, Benjamin Jameson <bloving@andrew.cmu.edu> |
Subject: Need help with an error msg. |
|
|
could you please help me fix the following error:
MazeCreator.java:48: Can't make a static reference to nonstatic variable roomList in class MazeCreator. roomList.add( Room(i, j, id) );
I declared the variable roomList and wallList as follow:
private Vector roomList; private Vector wallList;
and then they're initialized inside the class constructor. Any suggestions?
ben |
|