摘要:
java.util.Scanner类用来获取用户的输入,由此实现程序和人的交互 基本语法 Scanner s = new Scanner(System.in);//创建Scanner对象 基本使用流程 public class Demo01 { public static void main(Str 阅读全文
摘要:
三元运算符(x ? y : z) public class Demo02 { public static void main(String[] args) { // x ? y : z //如果x==true,则结果为y,否则为z int score = 50; String type = scor 阅读全文