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; }