/*条件分支三种方式
* 1.if语句
* 2.if-else
* 3.if-else-if-ele*/
public class Tiaojianfenzhi { public static void main(String[] args){ int money = 8000; if(money == 8000){ System.out.println("I can buy a mac laptop"); }else if(money == 4000){ System.out.println("I can buy a hasee laptop"); }else{ System.out.println("I can buy nothing"); } } }