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.
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.