Is There an Easy Way to Convert a Boolean to an Integer?

后端 未结 0 1363
臣服心动
臣服心动 2021-02-11 13:34

I am new to scala and I am finding the need to convert a boolean value to an integer. I know i can use something like if (x) 1 else 0 but I would like to know if th

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