Java how to set up shortcuts to a property set or get methods

Specific steps are as follows:
  First, the attributes defined in testApp.java class, for example: public Sting name;
  secondly, Alt + Shift + S, select Generate Getters and Setter ... this one, and FIG.
  
  

  You can get

public String getName() {
      return name;
}
public void setName(String name) {
      this.name = name;
}

 


  

Guess you like

Origin www.cnblogs.com/lvxisha/p/11584597.html