if else if……else
public static void main(String[] args) {
int mingci = 2;
if(mingci ==1){
System.out.println("奖励4块");
}else if (mingci == 2){
System.out.println("奖励3块");
}else if (mingci ==3){
System.out.println("奖励2块");
}else{
System.out.println("没奖励");
}
}
奖励3块