Properties遍历迭代方法
Properties p = System.getProperties();
for ( Enumeration e =p.propertyNames(); e.hasMoreElements(); )
{
String key = (String)e.nextElement();
System.out.println(key +"****:"+ p.getProperty(key) );
}
Properties遍历迭代方法
Properties p = System.getProperties();
for ( Enumeration e =p.propertyNames(); e.hasMoreElements(); )
{
String key = (String)e.nextElement();
System.out.println(key +"****:"+ p.getProperty(key) );
}
转载于:https://my.oschina.net/abcijkxyz/blog/720497