Java Wrapper & Primitive comparison

Idea

Space & time analysis

Code