Class 1, Part 2 |
Intro to Java 30-IT-396 |
|
Operators
You might have seen these before.
-
The simple:
-
+ addition
-
- subtraction
-
/ division
-
integer division for integer types, floating point division otherwise.
-
* multiplication
-
% modulo (the remainder of division)
-
Binary operations:
-
In other words, a = a + b is the same as a += b. Though it is not
as clear, it saves some typing.
Increment and Decrement Operators
Created by: Brandan
Jones January 4, 2002