In Java, if I do x = x <<< 2, everything works fine, but if I do x =<<< 2, it does not.
x = x <<< 2
x =<<< 2
Is there just no =<<< operator in Java?
=<<<
If so, then why is there an =<< operator?
=<<
Thank you.
You said that
if I do x = x <<< 2, everything works fine
Are you sure? <<< is not an operator in Java.
<<<
There is >>, <<, and >>>. There are also the corresponding >>=, <<=, and >>>= operators.
>>
<<
>>>
>>=
<<=
>>>=
`b >>>= 4` works fine.
<<< is not valid operator, you can shift only to the right without sign.
Copyright © 2021 Jogjafile Inc.
You said that
Are you sure?
<<<
is not an operator in Java.There is
>>
,<<
, and>>>
. There are also the corresponding>>=
,<<=
, and>>>=
operators.