java.lang.Long.getLong(String nm, long val)


java.lang.Long.getLong(String nm, long val)

package com.codingdict;



import java.lang.*;



public class LongDemo {



   public static void main(String[] args) {



      /* returns the long value of the system property and won't 

         print default specified value as specified system property exits */

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

      System.out.println(Long.getLong(str, 10));



      /* returns default specified value as system property "java" 

         does not exist */ 

      System.out.println(Long.getLong("java",10));

   }

}