星期二, 一月 18, 2005

如何在Java 5.0里面最简洁的得到系统环境变量的?

Just on statement:
for(String key:System.getenv().keySet())
{
System.out.println(key+" = "+System.getenv(key));
}