摘要: package scanner;import java.util.Scanner;public class Demo01 { public static void main(String[]args){ Scanner scanner = new Scanner(System.in); //创建一个 阅读全文
posted @ 2020-03-25 21:44 火锅火锅 阅读(126) 评论(0) 推荐(0)
摘要: // x ? y : z 如果x=ture 则结果为y 否则结果为z 例: int score = 50; String type = score<60? "不合格" :"合格"; System.out.println(type); 输出为不合格 阅读全文
posted @ 2020-03-25 19:42 火锅火锅 阅读(97) 评论(0) 推荐(0)