当前位置: 代码迷 >> J2SE >> The static field DBmysql.getline should be accessed in a static way解决方案
  详细解决方案

The static field DBmysql.getline should be accessed in a static way解决方案

热度:8404   发布时间:2013-02-25 00:00:00.0
The static field DBmysql.getline should be accessed in a static way
MyEclipse里的警告,是什么意思?
程序:
lis2 = (String)this.reupline(this.getline);
getline有警告

------解决方案--------------------------------------------------------
getline是个静态字段,应该以静态方式引用

把this.getline换成DBmysql.getline就好了,或者直接写getline
  相关解决方案