编辑代码

public class NestediF{
	public static void main(String[] atgs){
		boolean isRebate =true;
		double rebete = 8;
		double price = 115.50;
		if(price < 50){
			System.out.println("购买该商品!");
		}else if(isRebate){
			System.out.println("打折的话,我再想想!");
			if(rebete <= 7.5){
				System.out.println("折扣我很满意,买下了!");
			}else{
				System.out.println("打" + rebete + "折后的价格我也不想买!");
			}
		
		}else if(price > 100){
			System.out.println("太贵了,我不想买这东西了。");
		}
		System.out.println("先购完毕");
	}
}