⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rellogops.java

📁 180个针对Java初学者的简单实例,包含了180個適合與初學者的源碼實例
💻 JAVA
字号:
class RelLogOps {
  public static void main(String args[]) {
    int x, y;
    boolean a, b;
    x = 10;
    y = 11;
    if(x < y) System.out.println("x < y");
    if(x <= y) System.out.println("x <= y");
    if(x != y) System.out.println("x != y");
    if(x == y) System.out.println("this won't execute");
    if(x >= y) System.out.println("this won't execute");
    if(x > y) System.out.println("this won't execute");

    a = true;
    b = false;
    if(a && b) System.out.println("this won't execute");
    if(!(a && b)) System.out.println("!(a && b) is true");
    if(a || b) System.out.println("a || b is true");
    if(a ^ b) System.out.println("a ^ b is true");
  }   
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -