Java syntax: Difference between revisions

Content deleted Content added
Arithmetic: more conversion to tables
Line 231:
>>= Right shift (sign-propogating) and assign
>>>= Right shift (zero fill) and assign
 
{| class="wikitable"
|-
!colspan="2"|Assignment
|-
!<tt>=</tt>
|Assign
|-
!<tt>+=</tt>
|Add and assign
|-
!<tt>-=</tt>
|Subtract and assign
|-
!<tt>*=</tt>
|Multiply and assign
|-
!<tt>/=</tt>
|Divide and assign
|-
!<tt>%=</tt>
|Modulus and assign
|-
!&=
|[[Bitwise AND]] and assign
|-
!<tt>&#124;=</tt>
|[[Bitwise OR]] and assign
|-
!<tt>^=</tt>
|[[Bitwise operation|Bitwise XOR]] and assign
|-
!<tt><<=</tt>
|Left shift (zero fill) and assign
|-
!<tt>>>=</tt>
|Right shift (sign-propogating and assign)
|-
!<tt>>>>=</tt>
|Right shift (zero fill) and assign
|}
 
===Comparison===