java中set函数和get函数是怎么使用的呀?越详细点越好呀。我是在不会用呀??急死我了都
谁能给我详细的格式呀?谢谢了,java努力自学中。。
谁能给我详细的格式呀?谢谢了,java努力自学中。。
解决方案 »
- struts2怎么用validation框架校验下拉列表?
- 怎么做网页注销功能!
- Tomcat中资源描述符有先后顺序吗?
- 急急!!hibernate left join 取join表字段值为null??
- 在 Eclipse 下有什么插件能针对 websphere 6.1 呢
- 请问如果快速学习web service?
- 第一次尝试做系统遇到困难,求帮忙解决
- 谁下载了轻量级J2EE 企业应用实战:Struts Spring Hibernate 整合开发。
- 左边的目录树,怎么创建?急!在线等待。
- 在hibernate中使用session.createSqlQuery查询自定义sql语句
- struts2参数传递问题
- 求页面的代码,高手请入
private String temp;
private String temp1;
public void setTemp(String str){
this.temp = str;
}
public void setTemp1(String str){
this.temp = str;
}
public String getTemp(){
return this.temp;
}
public String getTemp1(){
return this.temp;
}
public void main(String[] args){
Test t = new Test();
t.setTemp1("test Setter Getter Method");
System.out.println(t.getTemp1);
}
}