Another example of ternary op
int x;
int y;
x = Integer.parseInt(stdin.readLine());
y = Integer.parseInt(stdin.readLine());
System.out.println(�The largest of your inputs is � + ((x >=y) ? x : y) );
Previous slide
Next slide
Back to first slide
View graphic version