📜  如何在java中比较To - C编程语言代码示例

📅  最后修改于: 2022-03-11 15:04:33.980000             🧑  作者: Mango

代码示例1
x.compareTo(y) <  0     // x <  y
x.compareTo(y) <= 0     // x <= y
x.compareTo(y) != 0     // x != y
x.compareTo(y) == 0     // x == y
x.compareTo(y) >  0     // x >  y
x.compareTo(y) >= 0     // x >= y