I am new to scala and have tried several basic operations to get the language hanging.
I am trying to use logical operators. For instance:
val a2 = 0x01&0xFF println(!a2)
I want to negate the value of a2 and then print it. But it gives me a mistake saying
value unary_! is not a member of Int
I am not sure how to use the NOt operator. Can someone help me?
source share