Skip to content

Glossary: Java Basics

Remainder

Also written: %

What's left after whole-number division, given by `%`. Packing 23 bags in boxes of 6 leaves `23 % 6`, which is 5 bags.

Where the book teaches it

Related terms

Integer division