import java.io.*;
import java.util.*;
class Student {
private ArrayList courses;
private ArrayList marks;
public Student(){
courses = new ArrayList();
marks = new ArrayList();
}
public ArrayList getCourses(){
return courses;
}
public ArrayList getMarks(){
return marks;
}
public void addCourseMarks(String cr, int mk){
courses.add(cr);
marks.add(mk);
}
}
class Department {
private int numberOfStudents;
private ArrayList list;
public Department(){
numberOfStudents = 0;
list = new ArrayList();
}
public void setNumberOfStudents(int n){
numberOfStudents = n;
}
public int getNumberOfStudents(){
return numberOfStudents;
}
public ArrayList getList(){
return list;
}
public void add(Student st){
list.add(st);
}
}
class University {
private int numberOfDepartments;
private ArrayList depts;
public University(){
numberOfDepartments = 0;
depts = new ArrayList();
}
public void setNumberOfDepts(int n){
numberOfDepartments = n;
}
public int getNumberOfDepts(){
return numberOfDepartments;
}
public ArrayList getDepts(){
return depts;
}
public void addDepartment(Department dp){
depts.add(dp);
}
}
public class DemoUniversity{
public static void main(String[] args){
ArrayList discipline = new ArrayList();
ArrayList depts;
ArrayList students;
Scanner sc = new Scanner(System.in);
University[] list = new University[4];
for (int i = 0; i courses = students.get(l).getCourses();
ArrayList marks = students.get(l).getMarks();
for (int m = 0; m
“Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!”
What Students Are Saying About Us
.......... Customer ID: 12*** | Rating: ⭐⭐⭐⭐⭐"Honestly, I was afraid to send my paper to you, but splendidwritings.com proved they are a trustworthy service. My essay was done in less than a day, and I received a brilliant piece. I didn’t even believe it was my essay at first 🙂 Great job, thank you!"
.......... Customer ID: 14***| Rating: ⭐⭐⭐⭐⭐
"The company has some nice prices and good content. I ordered a term paper here and got a very good one. I'll keep ordering from this website."