标签:三目运算符 public span util scanner static system max nbsp
1 import java.util.Scanner;
2
3
4 //三目运算符
5 public class SingleQuestion{
6 public static void main(String args[]){
7 int x = 10;
8 int y = 9;
9 int max = x > y ? x : y;
10 System.out.println("较大的数字是:"+ max);
11 }
12 }
标签:三目运算符 public span util scanner static system max nbsp
原文地址:http://www.cnblogs.com/YangGC/p/6040128.html