Java Data Type Tutorial - Java System.mapLibraryName(String libname)








Syntax

System.mapLibraryName(String libname) has the following syntax.

public static String mapLibraryName(String libname)

Example

In the following code shows how to use System.mapLibraryName(String libname) method.

/*from  ww w  . jav  a  2s.c o m*/

public class Main {

   public static void main(String[] args) {

     String str = System.mapLibraryName("os.name");   
     System.out.println(str);
   }
}

The code above generates the following result.