Skip to content

Glossary: Algorithms Beyond the Basics in Java

Arrays.copyOf / Arrays.toString / Arrays.fill

Also written: Arrays.copyOf, Arrays.toString, Arrays.fill

Helper methods from `java.util.Arrays`. `copyOf` copies the first items of an array, `toString` prints an array in brackets, and `fill` sets every slot to one value, as when the gift-card table starts at INF.

Where the book teaches it

Related terms

INF (Integer.MAX_VALUE)