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
System.getProperty(java.lang.String) method. The string value of this
property is then interpreted as an integer value and an Integer object
representing this value is returned. Details of possible numeric
formats can be found with the definition of getProperty.
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 your case most probably you need to use
public static int parseInt(String s,
int radix)
throws NumberFormatException
For details of the both please use following link