日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程语言 > java >内容正文

java

java system类_Java System类mapLibraryName()方法及示例

發布時間:2025/3/11 java 56 豆豆
生活随笔 收集整理的這篇文章主要介紹了 java system类_Java System类mapLibraryName()方法及示例 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

java system類

系統類mapLibraryName()方法 (System class mapLibraryName() method)

  • mapLibraryName() method is available in java.lang package.

    mapLibraryName()方法在java.lang包中可用。

  • mapLibraryName() method is used to map a given library name into a platform-dependent native library name. This is a universal method for mapping a library name into the platform-specific name.

    mapLibraryName()方法用于將給定的庫名稱映射到依賴于平臺的本機庫名稱。 這是將庫名稱映射到特定于平臺的名稱的通用方法。

  • mapLibraryName() method is static a method, it is accessible with the class name too.

    mapLibraryName()方法是靜態方法,也可以使用類名進行訪問。

  • mapLibraryName() method may throw an exception at the time of library name mapping: NullPointerException: In this exception if the mapped library name is null.

    在庫名映射時, mapLibraryName()方法可能會引發異常:NullPointerException:如果映射的庫名為null,則在此異常中。

Syntax:

句法:

public static String mapLibraryName(String library_name);

Parameter(s):

參數:

  • String library_name – represents the name of the library.

    字符串library_name –代表庫的名稱。

Return value:

返回值:

The return type of this method is String, it returns the mapped the given the library name.

該方法的返回類型為String ,它返回給定庫名稱的映射。

Example:

例:

// Java program to demonstrate the example of // mapLibraryName() method of System Classpublic class MapLibraryNameMethod {public static void main(String[] args) {// Display the version of operating systemSystem.out.println(System.getProperty("os.version"));// Here, we are calling the mapLibraryName() method// that will be used to map a library name (os.version) // into a platform-specific string representing a native libraryString s = System.mapLibraryName("os.version");System.out.println(s);} }

Output

輸出量

E:\Programs>javac MapLibraryNameMethod.java E:\Programs>java MapLibraryNameMethod 4.8.0-41-generic libos.version.so

翻譯自: https://www.includehelp.com/java/system-class-maplibraryname-method-with-example.aspx

java system類

總結

以上是生活随笔為你收集整理的java system类_Java System类mapLibraryName()方法及示例的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。