getProperties

2019年6月9日 (日) 20:29時点におけるY (トーク | 投稿記録)による版
(差分) ← 古い版 | 最新版 (差分) | 新しい版 → (差分)

System.getProperties [1]

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

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