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.
Welcome to the Java Programming Forums
The professional, friendly Java community. 21,500 members and growing!
The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.
>> REGISTER NOW TO START POSTING
Members have full access to the forums. Advertisements are removed for registered users.
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.
If you don't understand my answer, don't ignore it, ask a question.
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.
If you don't understand my answer, don't ignore it, ask a question.
Source of the null matrix:
public boolean[][] world() { // TODO Auto-generated method stub return null; }
The methods are skeletons. The code can't be executed yet without errors.
If you don't understand my answer, don't ignore it, ask a question.
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.
Last edited by Norm; September 17th, 2012 at 09:44 PM.
If you don't understand my answer, don't ignore it, ask a question.
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.
If you don't understand my answer, don't ignore it, ask a question.