having Problems with Java Code

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hofsoc
    New Member
    • Mar 2007
    • 1

    #1

    having Problems with Java Code

    HI,

    I am a newcomer to the Java programming scene and I was wondering if anyone could give me a few tips with regard to a project I have to do.

    Basic structure is that i have a few classes; Employee, Assignment, Manager, Consultant, and Project. I have Employee, manager and Consultant working fine but I need to create an array within Project that will hold my assignments and I also need to create an array with assignment to hold a list of experts.. ie my consultants. anyway I do not know how to put the whole class into an array or if it is even possible,

    I know this is quite vague but if anyone could help me out it would be greatly appreciated.
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    Originally posted by hofsoc
    HI,

    I am a newcomer to the Java programming scene and I was wondering if anyone could give me a few tips with regard to a project I have to do.

    Basic structure is that i have a few classes; Employee, Assignment, Manager, Consultant, and Project. I have Employee, manager and Consultant working fine but I need to create an array within Project that will hold my assignments and I also need to create an array with assignment to hold a list of experts.. ie my consultants. anyway I do not know how to put the whole class into an array or if it is even possible,

    I know this is quite vague but if anyone could help me out it would be greatly appreciated.
    You don't put classes into arrays. You put objects (class instances). Read this

    Comment

    Working...