Java
package jp.mvc; |
U | |
public dass ModelBean { |
public String getEmailf) { | |
priyate String firstName; privateString lastName; |
return fixNull(this.email); } | |
priyate String email; |
public void setEmail(String email) { | |
public String getRrstName() { |
tfiis.email = email; | |
return fixNull(this.firstName); } |
} priyate String fixNull(String in) { | |
public void setFirstName(String firstName) { |
return (in == nuli) ? : in; | |
this.firstName = firstName; > |
} public String getMessage() | |
public String getLastName() { |
{ | |
return fixNull(this.lastName); } |
return "\nFirst Na me:' + getfirstNameO + ”\n" + "Last Name: " + getLastName() + | |
public void setLastName(String lastName) { | ||
this.lastName = lastName; } U |
Email: " + get£mai!(); > } |