Both are in my Student class:
public class Student
{
public Student( String aFirstName, String aLastName, int aStudentId )
{
firstName = aFirstName;
lastName = aLastName;
studentId...
Type: Posts; User: raphytaffy
Both are in my Student class:
public class Student
{
public Student( String aFirstName, String aLastName, int aStudentId )
{
firstName = aFirstName;
lastName = aLastName;
studentId...
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...
Thanks, so I should implement equals() and hashCode() into my GradeBook class?
public boolean equals( Object otherObject )
{
if( otherObject == null ) return false;
if( getClass() !=...
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...