View Single Post
Old May 10th, 2006, 3:23 PM   #3
ReggaetonKing
Sexy Programmer
 
ReggaetonKing's Avatar
 
Join Date: Nov 2005
Location: New Jersey
Posts: 891
Rep Power: 4 ReggaetonKing is on a distinguished road
Send a message via AIM to ReggaetonKing
make the array "seats" a static variable within the class(a global variable) instead of just having it in the main method.
public void seatTaken(int x, int y)
{  //change the value of a seat to taken when necessary
	taken = true;
	seats[x][y] = "X";
}
This has no variable/array seats. I would recommend you reading about recursion. Google that, there are a lot of websites that have recursion and how to apply and understand it in Java.

EDIT: good point, Jaeusm!
__________________
I would love to change the world, but they won't give me the source code!
ReggaetonKing is offline   Reply With Quote