Category: Education
-
Trail: Essential Java Classes The Java Tutorials
Combining the regular assignment operator with the arithmetic operators, you can achieve different results. This principle applies to the modulo operations as well. If both or one of the operands are a float/double, the result will be a float/double. Although the result of this operation should’ve been 1.6 it didn’t happen because in Java, if…