摘要:
顺序结构 Java的基本结构,是最简单的算法结构,按顺序一句一句执行 选择结构 if多选择结构 /* if语句至多有1个else语句,else语句在所有的else if 语句之后 if 语句可以有若干 else if 语句,它们必须在 else 语句之前 一旦其中一个 else if 语句检测为 t 阅读全文
摘要:
三元运算符 //三元运算符 public class Demo08 { public static void main(String[] args) { // x ? y : z //如果x==true,则结果为y,否则结果为z int score = 80; String type = score 阅读全文