📄 logic.java
字号:
//Logic.java
//This programe is about the Logic Computing
public class Logic{
public static void main(String[] args){
int x = 5;
int y = 7;
boolean b1,b2,b3,b4;
System.out.println("x ="+x+"y = "+y);
b1 = x>y && ++x<y;
b2 = x>4 || ++x<y;
b3 = x>1 ^ ++x<y;
b4 = x<y & ++x<y;
System.out.println("b1 ="+b1);
System.out.println("b2 ="+b2);
System.out.println("b3 ="+b3);
System.out.println("b4 ="+b4);
System.out.println("x ="+x+"y = "+y);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -