本书结合作者丰富的实践经验和深厚的理论基础

源代码在线查看: condition.java

软件大小: 317 K
上传用户: dhgagfdagfdsdgf
关键词: 实践 经验
下载地址: 免注册下载 普通下载 VIP

相关代码

				// condition.Java
				public class condition {
				   public static void main(String [] args) {
				      int a=3,b=8;     
				      int c = (a>b)?a++:b++;        // a不变
				      System.out.println ("a ="+a+ "\tb="+b+ "\tc="+c);
				      int d = (a>b)?++a:++b;        //a不变
				      System.out.println ("a ="+a+ "\tb="+b+ "\td="+d);
				      int e = (a				      System.out.println ("a ="+a+ "\tb="+b+ "\te="+e);
				      int f = (a				      System.out.println ("a ="+a+ "\tb="+b+ "\tf="+f);      
				   } 
				}// end class condition
							

相关资源