Check if a variable is between two numbers with Java

后端 未结 7 1973
暗喜
暗喜 2020-12-10 13:35

I have a problem with this code:

if (90 >>= angle =<< 180)

The error explanation is:

The left-hand side

相关标签:
7条回答
  • 2020-12-10 13:58

    You can use apache Range API. https://commons.apache.org/proper/commons-lang/apidocs/org/apache/commons/lang3/Range.html

    0 讨论(0)
提交回复
热议问题