Skip to content

Glossary: Java Basics

Integer division

Dividing two `int`s, which gives only the whole-number part. `10 / 4` is `2`, so use a `double` on one side to get `2.5`.

Where the book teaches it

Related terms

RemainderCastint