That is not a compiler error. You get that error when you execute a program.
Did you get any compiler errors? Don't try to execute the code, just compile it.
Printable View
That is not a compiler error. You get that error when you execute a program.
Did you get any compiler errors? Don't try to execute the code, just compile it.
I don't even know where the compiler is. Pretty sad.
I supposed you're using an IDE that hides all that.
Next step is to fill in the new constructor. You will need read the Specifications to get the details of what arguments the constructor gets and what its supposed to do with them.
Source of the null matrix:
Code :
public boolean[][] world() { // TODO Auto-generated method stub return null; }
The methods are skeletons. The code can't be executed yet without errors.
I have absolutely no idea. Honestly just want to Q.Q
Talk to whoever wrote the code in post#1 about how to rewrite it to make it fit with the new code from your professor.
Make a list of the specifications for the constructor and work on the items one by one.
Many of the values passed in the constructor's args are what your main() method asked for and read in from the user. Now those values are coming as args in the constructor.
Think you could fix it in 10 minutes and save my ass? Lol just kidding, you have done enough. Thanks for the help. Have a good night.
Good luck and good night.
Back tomorrow.