import java.util.*;

/** Programmumgebung anzeigen
  @author Walter J. Herglotz
  @version 1.0
*/

public class Optionen
{
public static void main (String[] args) 
   {
   // einzelnes Attribut holen
   String xxx = System.getProperty("path.separator");
   System.out.println("Der Teiler im Pfad ist: " + xxx);

    // Hole alle Optionen als Aufzählung
    Properties yyy = System.getProperties();
    int x = yyy.size();
    System.out.println("Anzahl der Optionen: " + x);
    
     // ale einzelnen Optionen holen
     String s;
     Enumeration e;
     for (e = yyy.propertyNames(); e.hasMoreElements() ;   ) 
	{
              	s = (String)e.nextElement();
	System.out.println(s +" = " + System.getProperty(s));
      	 }
    }
}