What is the Wrapper class? When would I use the Wrapper class?
The Wrapper Class is initially a little confusing, but really not a complicated thing. We have not covered it, yet, since we don’t need it until we use ArrayLists. School closed before we could cover it fully. You may have actually seen them and thought them just an odd typing instead any special code. Here is the tutorial link from Edhesive about the Wrapper Class.
The only time we would normally see them is when you want to use an ArrayList or more advanced object collections. An ArrayList can only be a list of Objects. It cannot be a list of primitive variable. Arrays, though, can be either primitive variables or Objects.
Lesson 12: Wrapper classes