public bool compare(Voter v) { if (v.getFirstName().Equals(firstName, StringComparison.OrdinalIgnoreCase) && v.getMiddleName().Equals(middleName, StringComparison.OrdinalIgnoreCase) && v.getLastName().Equals(lastName, StringComparison.OrdinalIgnoreCase) && v.getID().Equals(this.getID(), StringComparison.OrdinalIgnoreCase)) return true; return false; }