javabean

13年前
  1. public String getCode() {   
  2.     return code;   
  3. }   
  4.   
  5. public void setCode(String code) {   
  6.        if(code.length()==0){   
  7.             this.code = "可以用于变量传值时作为一个判断";   
  8.         }else{   
  9.             this.code = code;   
  10.         }   
  11. }