java新人,setSelectEnd() api的意思看不懂,简单的讲解一下

2025-03-19 18:50:11
推荐回答(1个)
回答1:

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

.....
}