Organize compareTo

By all means, compareTo loses confidence, so make a note

"1".compareTo("2");// 1 < 2 → -1
"1".compareTo("1");// 1 = 1 → 0
"1".compareTo("0");// 1 > 0 →1

Doesn't it come out in the IDE? w

Recommended Posts

Organize compareTo
[Java] compareTo
Organize programming terms