Suppose you have
boolean active;
Accessors method would be
public boolean isActive(){return this.active;}
public void setActive(boolean active){this.active = active;}
See Also
- Java Programming/Java Beans
- Code Conventions for the Java Programming Language