

java.util.Enumeration enum =  System.getProperties().keys();
String key = null;
while (enum.hasMoreElements()){
        key = (String)enum.nextElement();
        System.out.print(key);
        for (int i =0;i<(30-key.length());i++)System.out.print(" ");
        System.out.println("->"+System.getProperty(key));
}

