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