develog

System Properties 본문

Dev/Java

System Properties

냐옴 2013. 6. 12. 17:34

System Properties

http://docs.oracle.com/javase/tutorial/essential/environment/sysprop.html


public class TestMain {


public static void main(String[] args) {

System.out.println("START");

System.out.println("-----------------------------------------");


Properties props = System.getProperties();

Set<Object> set = props.keySet();

Iterator<Object> iter = set.iterator();

while (iter.hasNext()) {

String key = (String) iter.next();

System.out.println(key + " ==> " + System.getProperty(key));

}


System.out.println("-----------------------------------------");

System.out.println("END");

}


}



'Dev > Java' 카테고리의 다른 글

URLConnection vs HTTPClient  (0) 2013.06.19
java classpath command line 실행  (0) 2013.06.12
java mail  (0) 2013.06.12
UserException  (0) 2013.06.11
excel open protected password in jacob  (0) 2013.06.08
Comments