This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Constructs a newly allocated Integer object that represents the specified int value.
Parameters: value - the value to be represented by the Integer object.
You might like to comare it with valueOf:
public static Integer valueOf(int i)
Returns a Integer instance representing the specified int value. If a new Integer instance is not required, this method should generally be used in preference to the constructor Integer(int), as this method is likely to yield significantly better space and time performance by caching frequently requested values.
Parameters: i - an int value. Returns: a Integer instance representing i. Since: 1.5