实战练习 第二题

     

                    int y ;
                
                int x;
                y=8;
                
                x=6;
                
            String str1  = (y== x) ? "真": "假";
            
            System.out. println((y== x) ?"真": "假" );
            
            int d =y>x ? 8: 6 ;
            
            System.out. println("y> x ? 8: 6的值是 ;"+ d ) ;
                        
    }
}

        
原文地址:https://www.cnblogs.com/as1234as/p/5092186.html