系统默认的变量JDK的API中java.lang.System类中有说明,楼主这个是自定义的
解决方案 »
- 反编译遇到的问题
- java 中jsp页面执行后台代码是如何设置断点,让程序一步一步的执行啊!
- 如何在对话框弹出后,阻塞弹出对话框的进程直到对话框关闭??谢谢
- 如何用java实现鼠标单击文件后取得该文件的文件名呢?
- 懂vrml的同志看看,我import vrml.*为什么通不过?
- 请问谁有Thinking in Java 最新电子版书
- 用接口回调的题目
- java的md5,base64转成c#的md5,base64
- 我是个新手,请问什么是Java sdk 如何安装最新的版本?得分容易哦
- 请教一个排序算法?
- 学习JAVA响应事件的机制——————200分言谢————————
- 有个java传递对象的问题?
* Gets the system property indicated by the specified key.
* <p>
* First, if there is a security manager, its
* <code>checkPropertyAccess</code> method is called with the key as
* its argument. This may result in a SecurityException.
* <p>
* If there is no current set of system properties, a set of system
* properties is first created and initialized in the same manner as
* for the <code>getProperties</code> method.
*
* @param key the name of the system property.
* @return the string value of the system property,
* or <code>null</code> if there is no property with that key.
*
* @exception SecurityException if a security manager exists and its
* <code>checkPropertyAccess</code> method doesn't allow
* access to the specified system property.
* @exception NullPointerException if <code>key</code> is
* <code>null</code>.
* @exception IllegalArgumentException if <code>key</code> is empty.
* @see #setProperty
* @see java.lang.SecurityException
* @see java.lang.SecurityManager#checkPropertyAccess(java.lang.String)
* @see java.lang.System#getProperties()
*/
public static String getProperty(String key) {
checkKey(key);
SecurityManager sm = getSecurityManager();
if (sm != null) {
sm.checkPropertyAccess(key);
}