User Profile

Collapse

Profile Sidebar

Collapse
alphaville
alphaville
Last Activity: Nov 22 '06, 09:57 AM
Joined: Nov 15 '06
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • alphaville
    replied to please help me (object modelling)
    in Java
    I fixed it, but the problem is that now I've just made some input (Alex, 1, 2, FEMALE), but this should be done by the user of the program. Do you know how to fix that?...
    See more | Go to post

    Leave a comment:


  • alphaville
    replied to please help me (object modelling)
    in Java
    Yeah, you're correct. Had actually done that, seems like it got lost... The program worked when I compiled it. Probably forgot to save the last changes.

    And yes, this: new Human("John",Hu man.MALE,3,2). This should be default. Should be read in from the keyboard by the user of the program. The same is this: HumanTable = new Human[30];...
    See more | Go to post

    Leave a comment:


  • alphaville
    replied to please help me (object modelling)
    in Java
    Well, I done some stuff, but I'm uncertain about the rest. I have to classes and one client. It's working now, but as it should do. Now I've decided the Humans information, but this should also be done by the user. As you can see above, there are several things that ain't working... I hope you can help me a bit!

    class Human {
    // Constants
    final static boolean MALE = false;
    final static boolean FEMALE = true;...
    See more | Go to post

    Leave a comment:


  • alphaville
    started a topic please help me (object modelling)
    in Java

    please help me (object modelling)

    Hi. I hope someone can help me with this-

    First there is a category Human, which has information about name, gender, age and unique ID.

    Human shall be saved in a class Town using a table.

    The constructor Town(int numberhumans) has parameters, which says the number of humans the town can have (maximum). The program shall let the user do as followed:

    - make a Town
    - add a Human...
    See more | Go to post
No activity results to display
Show More
Working...