📄 if.java
字号:
class If{
public static void main(String args[]) {
int a, b, c;
a = 3;
b = 4;
if(a < b)
System.out.println("a is less than b");
if(a == b)
System.out.println("this won’t be displayed");
System.out.println();
c = a - b;
System.out.println("c equal to -1");
if(c >0)
System.out.println("c is Positive number");
if(c < 0)
System.out.println("c is negative number");
System.out.println();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -