Basic Java Language: Difference between revisions

wikademia>Rayc
m cat
Line 111: Line 111:
<pre>a = a + 6;</pre>
<pre>a = a + 6;</pre>
Or you can use a shortcut in order to reach the same result as the above.
Or you can use a shortcut in order to reach the same result as the above.
<pre>a += 6</pre>
<pre>a += 6;</pre>
There are shortcuts to all of the operators, which will be shown in the following sections.
There are shortcuts to all of the operators, which will be shown in the following sections.