Arithmetic Operators
noun
say it: “air-ith-MET-ik OP-uh-ray-terz” /ˌɛrɪθˈmɛtɪk ˈɑpəreɪtərz/
The symbols + - * / and % that do math in Java: add, subtract, multiply, divide and find the remainder.
What is Arithmetic Operators in Java?
Arithmetic Operators — Symbols such as +, -, *, /, and % that perform calculations.
class Bakery {
void divideCookies() {
int cookies = 10;
cookies++;
int cookiesPerGuest = cookies / 2;
}
}
In a sentence
- “I used arithmetic operators to work out the total with tax: price * quantity * 1.08.”
Level: Novice · More Java terms at this level
Updated