• Post Reply Bookmark Topic Watch Topic
  • New Topic

association in java  RSS feed

 
Noshad Shakir
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We have three classes, Student, Department, Courses. How to make array of 10 objects of each class. There is associate relationship between courses and Student and department.
We pass values from Courses to Student and Department.
It returns desired record of a student, department and course.

Thanks in advance.


 
Mohamed Sanaulla
Bartender
Posts: 3185
34
Google App Engine Java Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is this related to Servlets? Would better sit in a Beginner Java forum.
I find that the question is not clear. Also we would like to see some effort from your side in terms of code.

From what I could make out from the question (initial part)- Yes you can make an array of any number of objects. You could also try Lists- ArrayList, Vector. Please refer to the Java tutorials to get started with Java.
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This thread is a duplicate of another thread in Java In General. I have deleted the other thread, and moved this one to Beginning Java. Do not duplicate threads.
 
marc weber
Sheriff
Posts: 11343
Java Mac Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't understand the question. Can you make it more clear?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!