?? test.java
字號:
import java.util.Properties;
import java.util.Enumeration;
public class Test{
public static void main(String[] args) {
Properties ps = System.getProperties();
Enumeration pn = ps.propertyNames();
while ( pn.hasMoreElements() ) {
String pName = (String) pn.nextElement();
String pValue = ps.getProperty(pName);
System.out.println(pName + "----" + pValue);
}
}
}
// 使用下述命令運行程序:
// java -DmyProperty=MyValue Test
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -