为什么会显示The value of the local variable phone2 is not used?
为什么会显示The value of the local variable phone2 is not used? 而且在Telphone.java中,private 的三个变量也是显示The value of the field Telphone.screen is not used
为什么会显示The value of the local variable phone2 is not used? 而且在Telphone.java中,private 的三个变量也是显示The value of the field Telphone.screen is not used
2015-08-22
package com.imooc;
import com.imooc.Telphone;
public class InitalTelphone {
public static void main(String[] args) {
Telphone phone = new Telphone(5.0f,2.0f,16.0f);
}
}
package com.imooc;
public class Telphone {
private float screen;
private float cpu;
private float mem;
......
}
我的代码是这样的,对象名phone,和三个变量名 都提示 The value of the field Telphone.screen is not used;...
举报