// Dog class. // Use IntelliJ to write getters and setters if you wish. import java.util.Calendar; public class Dog { private String name; private char gender; private String breed; private Calendar birthdate; private int registrationNum; private boolean idChip; public Dog(String theName, char theGender, String theBreed, Calendar theBirthDate, int theRegistrationNum, boolean hasIdChip) { this.name = theName; this.gender = theGender; this.breed = theBreed; this.birthdate = theBirthDate; this.registrationNum = theRegistrationNum; this.idChip = idChip; } // We need to get the registration number for the // HashMap key. public int getRegistrationNum( ) { return this.registrationNum; } @Override public String toString( ) { return String.format("%s %c %s %s %d %s", this.name, this.gender, this.breed, this.birthdate, this.registrationNum, this.idChip); } }