getProperties

2019年5月31日 (金) 10:18時点におけるY (トーク | 投稿記録)による版 (ページの作成:「System.getProperties [https://docs.oracle.com/javase/jp/8/docs/api/java/lang/System.html#getProperties--]<br> public static Properties getProperties() 現在のシ…」)
(差分) ← 古い版 | 最新版 (差分) | 新しい版 → (差分)

System.getProperties [1]
public static Properties getProperties()

現在のシステム・プロパティの一覧を取得します

// 全てのシステム・プロパティを取得
System.out.println(
    System.getProperties().toString().replaceAll(", ", "\n")
);