Dr Nick

(3)

$14/per page/Negotiable

About Dr Nick

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Art & Design,Computer Science See all
Art & Design,Computer Science,Engineering,Information Systems,Programming Hide all
Teaching Since: May 2017
Last Sign in: 248 Weeks Ago, 6 Days Ago
Questions Answered: 19234
Tutorials Posted: 19224

Education

  • MBA (IT), PHD
    Kaplan University
    Apr-2009 - Mar-2014

Experience

  • Professor
    University of Santo Tomas
    Aug-2006 - Present

Category > Essay writing Posted 28 Jul 2017 My Price 11.00

print all students in the ArrayList list. Help please!!

I finished the first Student class on BlueJ and it compiles just fine. But I cannot figure out how to make the public Roster extends ArrayList<Student> class.public class Student{private String lName, fName;private int idNum;public Student(int id, String fn, String ln){lName = ln;fName = fn;idNum = id;}public String getLastName(){ return lName; }public String getFirstName(){ return fName;}public int getID(){ return idNum;}public String toString(){ return fName + " " + lName + " " + idNum; }}The ArrayList<Student> class must have methods:public boolean contiansStudent(String ln)- given the last name of the student and determines if the student exists in the list.public Student retrieveById(int id)- given the id, finds student in list and returns the student. If student not found, eturn null.public int retrieveId(String ln)- given last name of student, return the id for that student.public boolean addStudent(Student s)- adds the Student s to the list and true or false value that this was accomplished. This method should not allow duplicate students to be added (duplicate meaning same name or id).public boolean removeStudent(int id)- removes a student from the list based on id.public boolean removeStudent(String ln)- removes a student from the list based on last name.public void printRoster()- print all students in the ArrayList<Student> list. Help please!!

Answers

(3)
Status NEW Posted 28 Jul 2017 03:07 PM My Price 11.00

----------- He-----------llo----------- Si-----------r/M-----------ada-----------m -----------Tha-----------nk -----------you----------- fo-----------r u-----------sin-----------g o-----------ur -----------web-----------sit-----------e a-----------nd -----------acq-----------uis-----------iti-----------on -----------of -----------my -----------pos-----------ted----------- so-----------lut-----------ion-----------. P-----------lea-----------se -----------pin-----------g m-----------e o-----------n c-----------hat----------- I -----------amÂ----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill-----------

Not Rated(0)