Learning Java/Basic Java Language: Difference between revisions

Content deleted Content added
m Robot: Automated text replacement (-:en: +:)
Line 208:
</source>
 
Subtraction, multiplication, and division, you have seen before, but the modulus operator is much less commonly used. Actually, it is commonly used, but itis known under a different name, the remainder. Nine divided by four gives a remainder of one, so therefore 9%4 (pronounced "9 mod 4") evaluates to 1.
 
When more than one of the operators are used in the same statement, for example: