Answer to Question #8706 in Java | JSP | JSF for is my array list correct

Question #8706
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); } }
Expert's answer

Not answered

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!


No comments. Be first!

Leave a comment

Ask Your question

New on Blog