
package hashmap;

// my version

public class ID 
{
    private String ID2;
    
    /* TO DO: Put a value for NUM_BUCKETS
     * The program stores information for 10,000 bank accounts.
     * A rule of thumb is to have the number of buckets be 130% of the number 
     * of objects that will be stored in them.
     * It is also recommended that NUM_BUCKETS be prime. */
    private final int NUM_BUCKETS = ;
    
    public ID(String a_ID)   
    {   ID2 = a_ID;      
    }
    
    /* TO DO: Complete the equals method
     * 2 ID's are equal simply if they are equal Strings
     * First, cast 'otherObject' to a String
     */
    public boolean equals(Object otherObject)
    {         
    }
    
    /* TO DO: Complete the hashCode method
     * - convert ID to an int 'IDint'
     * - if 'IDint' is negative, change its sign
     * - return the remainder of dividing 'IDint' by NUM_BUCKETS
    */
    public int hashCode()
    {          
    }
}
