scala bitwise and in condition : cannot be applied to (Boolean)

后端 未结 0 913
北恋
北恋 2021-01-29 08:11

I wanted to perform bitwise and operation in an if condition, and based on the matching condition return a particular int.

def test(x: Int): Int=         


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