摘要:
//三元运算符 public class Demo05 { public static void main(String[] args) { //x ? y :z //如果x==true,则结果为y,否则结果为z int score = 20; String type = score < 60 ?" 阅读全文
摘要:
public class Demo04 { public static void main(String[] args) { int a = 10; int b = 20; //字符串连接符 + System.out.println(""+a+b);//加号前面有字符串 则结果为字符串 System 阅读全文