Skip to content

Glossary: Data Structures and Algorithms in Java

integer division

Also written: / on ints, %

Dividing two `int`s with `/` drops the remainder (`7 / 2` is `3`), and `%` gives the remainder. It is used to find the middle index of a list and to split a number of minutes into hours and minutes.

Where the book teaches it

Related terms

binary searchmerge sort