try this code, it should print the property name= value
import java.util.Enumeration;
public class Sys {
public static void main(String[] args) {
Enumeration enm=System.getProperties().keys();
while (enm.hasMoreElements()){
String prop=enm.nextElement().toString();
System.out.println(prop.concat("= "+System.getProperties().getProperty(prop)));
}
}
}
MHD Yasir Al-lahham
|