Skip to content

Commit

Permalink
Fixed Customer Validate method
Browse files Browse the repository at this point in the history
  • Loading branch information
Jack-Is-2048 committed Mar 29, 2022
1 parent 12509d6 commit e94c454
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,9 @@ public String toString() {
}

public boolean validateCustomer() {
if (name == "" || email == "" || dob.isBefore(LocalDate.of(1920, Month.JANUARY, 1))) {
if (name.equals("") || email.equals("") || dob.isBefore(LocalDate.of(1920, Month.JANUARY, 1))) {
return false;
}
return true;
}
}
}

0 comments on commit e94c454

Please sign in to comment.