package javacodebook.core.systemprops;

import java.util.Properties;
import java.util.Enumeration;

/**
 * Auflistung aller System-Properties.
 * @author  Mark Donnermeyer
 */
public class Starter {
    
    public static void main(String[] args) {
        
        // Auflistung aller System-Properties 
        Properties props = System.getProperties();
        Enumeration enum = props.keys();
        while (enum.hasMoreElements()) {
            String key = (String)enum.nextElement();
            System.out.println(key + " = " + System.getProperty(key));
        }
        
        // Ausgabe eines Properties, welches als Parameter an die JVM 
        // uebergeben wurde
        System.out.println("--- Angabe zum Testparameter ---");
        System.out.print("testparameter = ");
        System.out.println(System.getProperty("testparameter"));
    }
    
}
