实例 Java 找出一个表达式是 true 还是 false

x
 
public class Main {
  public static void main(String[] args) {
    int x = 10;
    int y = 9;
    System.out.println(x > y); // returns true, because 10 is higher than 9  
  }
}
                    

输出结果

true