Java Integer.getInteger(String nm)
Syntax
Integer.getInteger(String nm) has the following syntax.
public static Integer getInteger(String nm)
Example
In the following code shows how to use Integer.getInteger(String nm) method.
public class Main{
public static void main(String[] args) {
String myKey = "MyKey";
System.setProperty(myKey, "102");
System.out.println(Integer.getInteger(myKey));
}// w w w . ja v a2s.c o m
}
The code above generates the following result.