How to induce order for Strings and compare against it?

后端 未结 0 1485
独厮守ぢ
独厮守ぢ 2021-01-24 08:10

Let\'s say Enum MyClass { ORANGE, APPLE, BANANA; }

In this case this will be true: ORANGE.compareTo(APPLE)<0 and Collections.min()

相关标签:
回答
  • 消灭零回复
提交回复
热议问题