Basic Java Language: Difference between revisions
wikademia>Crossbow9 |
wikademia>Crossbow9 |
||
| Line 94: | Line 94: | ||
a + b;</pre> | a + b;</pre> | ||
If you want to you want to use the addition operator to add 6 to the value of ''a'', it would be used like this: | If you want to you want to use the addition operator to add 6 to the value of ''a'', it would be used like this: | ||
< | <pre>a = a + 6;</pre> | ||
===Subtraction -, Division / and Multiplication * Operators=== | ===Subtraction -, Division / and Multiplication * Operators=== | ||