Good luck and good night.
Back tomorrow.
Type: Posts; User: Norm
Good luck and good night.
Back tomorrow.
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...
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.
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...
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.
Does the code compile yet?
You're right there. You got started too late this time. Maybe next time give it a little more time.
I don't understand why you are having a problem with something you already have used in your code.
The code you posted in post#1 has this line:
boolean newMatrix[][] = new boolean[rows][columns];
so your code already uses a boolean matrix.
Again define a skeleton method and fill...
Create a skeleton for the method and leave how to do the increment until later.
Is the Console class to be the starting point for the program now? It has a main() method.
If so you can get rid...
Make a list of the what's in the Specification section and code them one by one:
1) Your class will provide a constructor of seven parameters, ....
2) The class should provide a method, update,...
The assignment looks detailed enough. Where are you having problems? Do you have any specific questions?
Sorry, I don't read attachments. Can you post what is needed here?
Did the person that suggested adding objects give any clues?
I'd start by reading the tutorial:
Lesson: Classes and Objects (The Java™ Tutorials > Learning the Java Language)