public static Integer getInteger (String nm)

Determines the integer value of the system property with the specified name.

The first argument is treated as the name of a system property. System properties are accessible through the java.lang.System.getProperty(java.lang.String) method. The string value of this property is then interpreted as an integer value using the grammar supported by decode and an Integer object representing this value is returned.

If there is no property with the specified name, if the specified name is empty or null, or if the property does not have the correct numeric format, then null is returned.

In other words, this method returns an Integer object equal to the value of:

getInteger(nm, null)

Parameters:
nm    property name.

Returns:  the Integer value of the property.

Exceptions:
SecurityException    for the same reasons as System.getProperty

See also:
java.lang.System.getProperty(java.lang.String), java.lang.System.getProperty(java.lang.String, java.lang.String)