package operator; //三元运算符 public class Demo07 { public static void main(String[] args) { //x ? y 😒 //当x==true结果为y 否则为z int score = 50; String type = score < 60?"不及格":"及格"; System.out.println(type); } }
posted on 2025-02-10 20:45 别老把脚尖踮起 阅读(11) 评论(0) 收藏 举报