Integer.Integer
Class Overview | Class Members |
This Package |
All Packages
public Integer( int value )
Parameters
- value
- the value to be represented by the Integer.
Description
Constructs a newly allocated Integer object that
represents the primitive int argument.
public Integer( String s ) throws NumberFormatException
Parameters
- s
- the String to be converted to an
Integer.
Description
Constructs a newly allocated Integer object that
represents the value represented by the string. The string is
converted to an int value as if by the valueOf method.
Exceptions
NumberFormatException
if the String does not
contain a parsable integer.
See Also
valueOf