package 学习内容; /*package java01; import java.util.Scanner; public class Class10 { public static void main(String[] args) { //三元运算符 ?: int x = 9; /* int y = 6; int max = x>y?x:y; System.out.println(max); Scanner scan = new Scanner(System.in); int c = scan.nextInt(); c = x % 2==0?'t':'f'; System.out.println((char)c); } } //switch break; default; /* switc注意事项 1.可以直接放数字 2.一种情况只能出现一次 */