运算符的结合运用实例

来源:互联网 发布:阿里云选择镜像 编辑:程序博客网 时间:2024/05/17 17:45
public class java6_17 {/** * @param args */public static void main(String[] args) {// TODO Auto-generated method stubint a=12345679,b=97654321;boolean c;a=a*9;b=b*3;c=a>b?true:false;System.out.println("(12345679*9)>(97654321*3)?"  +c);System.out.println(c=(12345679*9)>(97654321*3)?true:false);}}