java.lang.Integer.getInteger(String nm)


java.lang.Integer.getInteger(String nm)

package com.codingdict;



import java.lang.*;



public class IntegerDemo {



   public static void main(String[] args) {



      // determines the integer value of the system property 

      String str = "sun.arch.data.model";

      System.out.println(Integer.getInteger(str));



      // prints null

      str = "java";

      System.out.println(Integer.getInteger(str));

   }

}