It is more expensive to perform operations on Integer objects rather than primitive int. Since an object is not needed use the primitive instead.