java switch语句

public class Oyea1{
public static void main(String [] args){
float money = 2206;
float rebate = of;
if (money > 200) {
int grade = (int) money/200;
switch (grade){
case 1:
rebate = 0.95f;
break;
case 2:
rebate = 0.90f;
break;
case 3:
rebate = 0.85f;
break;
case 4:
rebate = 0.83f;
break;
case 5:
rebate = 0.80f;
break;
defaut:
rebate = 0.60f;

}
}
System.out.println("你的累计消费金额为: " +money);
System.out.println("你将享受"+rebate+"折优惠!");
}
}帮忙看下 提示第四行的of不对
哦FUXK 我明白了
float rebate = 0F;
通常为了明显区别,用大写启卖F来表悄旅逗征镇竖float变量,修改为0F即可
你哪个是零啊,还是哦啊! 看着像o不想0呢!
应该是0啊