Search:

Type: Posts; User: raphytaffy

Search: Search took 0.13 seconds.

  1. Replies
    6
    Views
    4,169

    Re: Student TreeMap

    Both are in my Student class:


    public class Student
    {
    public Student( String aFirstName, String aLastName, int aStudentId )
    {
    firstName = aFirstName;
    lastName = aLastName;
    studentId...
  2. Replies
    6
    Views
    4,169

    Re: Student TreeMap

    I only need to retrieve the Student object when the user requests to Remove or Modify one of the Students and that is done through their Integer ID. Adding the equals() method that I coded above did...
  3. Replies
    6
    Views
    4,169

    Re: Student TreeMap

    Thanks, so I should implement equals() and hashCode() into my GradeBook class?


    public boolean equals( Object otherObject )
    {
    if( otherObject == null ) return false;
    if( getClass() !=...
  4. Replies
    6
    Views
    4,169

    Student TreeMap

    Hi all, my assignment is to use TreeMap to sort Student objects. Students have a first name, a last name, and a unique integer ID. The sample program looks like so:

    Sample Program

    A)dd R)emove...
Results 1 to 4 of 4