In Java, if I do x = x <<< 2
, everything works fine, but if I do x =<<< 2
, it does not.
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.