out.print("</span>");
out.println("</span>");
}
+ @Override
+ public boolean equals(Object obj) {
+ if (!(obj instanceof Name)) {
+ return false;
+ }
+ Name n = (Name) obj;
+ if (!(n.fname.equals(fname) && n.lname.equals(lname))) {
+ return false;
+ }
+ if (mname == null) {
+ if (n.mname != null) {
+ return false;
+ }
+ } else if (!mname.equals(n.mname)) {
+ return false;
+ }
+ if (suffix == null) {
+ if (n.suffix != null) {
+ return false;
+ }
+ } else if (!suffix.equals(n.suffix)) {
+ return false;
+ }
+ return true;
+
+ }
}
return name.equals(s.name) && email.equals(s.email)
&& dob.equals(s.dob);
}
+ public int getMaxAssurePoints() throws SQLException {
+ int exp = getExperiencePoints();
+ int points = 10;
+ if (exp >= 10) {
+ points += 5;
+ }
+ if (exp >= 20) {
+ points += 5;
+ }
+ if (exp >= 30) {
+ points += 5;
+ }
+ if (exp >= 40) {
+ points += 5;
+ }
+ if (exp >= 50) {
+ points += 5;
+ }
+ return points;
+ }
}