Question: Please answer in Java /** * Create a student a student with this name and id and * add the student to the list of

 Please answer in Java /** * Create a student a student

Please answer in Java

/** * Create a student a student with this name and id and * add the student to the list of students * @param studentName name of the student * @param studentId id of the student * public void addStudent(String studentName, int studentId) { Student junior=new Student(studentName, studentId); this.students.add(junior); } /** Return true if a person with the given name is a student at this university, * and false otherwise. * For the purpose of this exercise we assume that names are unique. * @param name name of the person * @return true if this person is a student at this university */ public boolean findStudent(String name) { // TODO: check if the student with this name is in the ArrayList return false; } /** * Return a string representation of the university * @return a string that contains the name of the university on the first line, and * then includes students, one on each line: * name, id */ public String toString() { // TODO: return a string representation of the university - see description above }

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!