Java By Sailendra: How to iterate Properties Files in Java? 1. Properties props = System.getProperties...

Please Visit: http://ift.tt/1ajReyV



Java By Sailendra: How to iterate Properties Files in Java?

1. Properties props = System.getProperties();

for (String key : props .stringPropertyNames())

{

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

}

2. Properties props = System.getProperties();

Enumeration e = props.propertyNames();

while (e.hasMoreElements())

{

String key = (String) e.nextElement();

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

}http://ift.tt/1npdVuq

http://ift.tt/1mDbZBA



Java By Sailendra: How to iterate Properties Files in Java?







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1npdVuu

via LifeLong Community

No comments:

Post a Comment