2.21iftest.java
来自「JAVA程序设计的源代码」· Java 代码 · 共 9 行
JAVA
9 行
public class IfTest{
public static void main(String []args){
int count=1;
if(count<0) //进行if判断,如果count<0,打印该值是负数
System.out.println("The value of count is is negative!");
System.out.println("The value of count is: "+count);
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?