In the last section, we created and initialized some variables. Now let's look at Java's facilities for numeric operations. They will look very familiar to C programmers, but there are some differences. Operators that perform arithmetic or numeric comparison are shown in Table 3.2. The precedence gives the order in which the compiler performs operations, with 1 being the first. You can always use parentheses to control the order in which operations are performed.
|1||++||Increment by 1 (or 1.0)|
|1||--||Decrement by 1 (or 1.0)|
|5||<||Less than test|
|5||>||Greater than test|
|5||<=||Less than/equal test|