压缩包内是近180多个针对Java初学者编写的简单实例

源代码在线查看: if.java

软件大小: 238 K
上传用户: RR15133422795
关键词: Java 180 初学者 编写
下载地址: 免注册下载 普通下载 VIP

相关代码

				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();
						 }
					}
							

相关资源