/** sysprops.java * Print system properties to System.out * Jan 2000, hiwa */ import java.util.*; class sysprops { public static void main( String[] args ){ Properties props = System.getProperties(); // Properties is a Hashtable, which is a Map Set set = props.entrySet(); // call a Map's method Iterator itr = set.iterator(); while( itr.hasNext() ) System.out.println( itr.next().toString() ); } }