一般来说 可能是有一个 变量 类似 selectEnd 这种吧 然后有2个方法来 设置他的值和获得他的值
setSelectEnd(xxxx) 然后在其他地方来获得他的值 类似 getSelectEnd() 这样的吧 常用的比如说是一个类
public class Test(){
int selectEnd;
....
public void setSelectEnd(int value){
this.selectEnd=value;
}
public int getSelectEnd(){
return this.selectEnd;
}
.....
}