Java 条件运算符 Java赋值运算符实例 Java instanceof 操作符 Java 条件运算符 public class Test { public static void main(String args[]) { int a, b; a = 10; b = (a == 1) ? 20: 30; System.out.println( "Value of b is : " + b ); b = (a == 10) ? 20: 30; System.out.println( "Value of b is : " + b ); } } Java赋值运算符实例 Java instanceof 操作符