首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > J2SE开发 >

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

2012-10-13 
The static field DBmysql.getline should be accessed in a static wayMyEclipse里的警告,是什么意思?程

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

热点排行