Search:

Type: Posts; User: Norm

Search: Search took 0.11 seconds.

  1. Re: Game of Life, help with Array Object? Quite puzzled

    Good luck and good night.

    Back tomorrow.
  2. Re: Game of Life, help with Array Object? Quite puzzled

    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...
  3. Re: Game of Life, help with Array Object? Quite puzzled

    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.
  4. Re: Game of Life, help with Array Object? Quite puzzled

    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...
  5. Re: Game of Life, help with Array Object? Quite puzzled

    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.
  6. Re: Game of Life, help with Array Object? Quite puzzled

    Does the code compile yet?
  7. Re: Game of Life, help with Array Object? Quite puzzled

    You're right there. You got started too late this time. Maybe next time give it a little more time.
  8. Re: Game of Life, help with Array Object? Quite puzzled

    I don't understand why you are having a problem with something you already have used in your code.
  9. Re: Game of Life, help with Array Object? Quite puzzled

    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...
  10. Re: Game of Life, help with Array Object? Quite puzzled

    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...
  11. Re: Game of Life, help with Array Object? Quite puzzled

    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,...
  12. Re: Game of Life, help with Array Object? Quite puzzled

    The assignment looks detailed enough. Where are you having problems? Do you have any specific questions?
  13. Re: Game of Life, help with Array Object? Quite puzzled

    Sorry, I don't read attachments. Can you post what is needed here?
  14. Re: Game of Life, help with Array Object? Quite puzzled

    Did the person that suggested adding objects give any clues?
  15. Re: Game of Life, help with Array Object? Quite puzzled

    I'd start by reading the tutorial:
    Lesson: Classes and Objects (The Java™ Tutorials > Learning the Java Language)
Results 1 to 15 of 15