为什么这个代码一直显示error
package exercise1;
public class Staff {
float screen ;
float cpu;
float mem;
public Staff(float newScreen,float newCpu,float newMem) {
screen = newScreen;
cpu = newCpu;
mem = newMem;
System.out.println("有参的构造方法");
}
}
package exercise1;
public class player {
public static void main(String[]args) {
Staff staff = new Staff();
new Staff(5.0f,1.4b,3.0g);
}
}