1 public class HelloWorld { 2 public static void main(String[] args) { 3 intx =10; 4 inty = 5; 5 intz = 4; 6 7 inttemp = (x>y)x:y; 8 intmax = (z>x1)z:tmp; 9 System.out.println(max);10 11 }12}
来源: