import java.util.*;
class SystemDemo
{
public static void main(String[] args)
{
Properties prop= System.getProperties();
for(Object obj : prop.keySet())//这是什么用法??
{
String value=(String)prop.get(obj);
System.out.println(obj+"::"+value);
}
System.out.println("Hello world");
}
}
不懂求解 |