这两行报错,实在不懂,求大佬解答
可能是因为你没有导入吧,你复制下试试,这个是
package com.imooc;
import com.imooc.FanZhuan;
public class FanZhuanTest{
public static void main(String[] args) {
Telphone phone2=new Telphone(1.5f,3.0f,4.5f);
phone2.setScreen(1.5f);
System.out.println(phone.getScreen());
}
}