Create a new student and based on his course add him into the appropriate
department. (Tip: each department will have an arraylist for their student, each
time a new student is to be entered, get the arraylist, add the student and the set
the arraylist back to the deprtment.)
Choose a department to display all its students’ information.
Choose a department to display the average GPA of its students.
Find a student based on his name and surname. Display all student’s info
otherwise display that the student does not exist.
Choose a classYear to display all students on that year from both departments,
separating them based on their department.
Exit program.
PLEASE TRY TO CORRECT MY WORK
package university;
/**
*
* @author George
*/
public class University {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
java.util.ArrayList List= new java.util.ArrayList();
List.add("student");
List.add("");
List.add("department");
List.add("java");
List.add("database systems");
List.add("name");
List.add("surname");
System.out.println("find a student"+List.indexOf("name"));
System.out.println("find a student"+List.indexOf("surname"));
System.out.println(" display students information:" +
(List.get(2)));
System.exit(0);
}
}
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
"assignmentexpert.com" is professional group of people in Math subjects! They did assignments in very high level of mathematical modelling in the best quality. Thanks a lot
Comments
Leave a comment