Guava contains a lot of useful methods and classes to work with primitives and do math with them; in this post we’ll briefly discuss some of them. Primitive arrays To help you work with primitives arrays, Guava includes quite a few classes: Longs, Ints, Floats, Doubles, Booleans, and others. Most of these classes contain variants of the following methods, which work on primitive types and thus avoid any autoboxing issues: