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

📄 if.java

📁 180个针对Java初学者的简单实例,包含了180個適合與初學者的源碼實例
💻 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 + -