According to definition
The java.lang.Integer.getInteger(String nm) method determines the integer value of the system property with the specified name.
Can someone describe me the definition in simple terms. Where is Integer.getInteger needed. Where can i use it. Why does the below program prints different outputs.
String str1 = "sun.arch.data.model";
System.out.println(Integer.getInteger(str1,5));
System.out.println(Integer.getInteger(str1));
String str2 = "com.samples.data.model";
System.out.println(Integer.getInteger(str2,5));
System.out.println(Integer.getInteger(str2));
Output: 32 32 5 null