valueOf(int)
is generally a better choice, as it is
likely to yield significantly better space and time performance.
Constructs a newly allocated Integer
object that
represents the specified int
value.
value | the value to be represented by the
Integer object. |
Diagram: Number