summaryrefslogtreecommitdiffstats
path: root/Master/Reference Architectures and Patterns/hjp5/examples/Listing1604.java
blob: 8f519d8492c1bb5ffaaba873efe6e4c24073496d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* Listing1604.java */

import java.util.*;

public class Listing1604
{
  public static void main(String[] args)
  {
    Properties sysprops   = System.getProperties();
    Enumeration propnames = sysprops.propertyNames();
    while (propnames.hasMoreElements()) {
      String propname = (String)propnames.nextElement();
      System.out.println(
        propname + "=" + System.getProperty(propname)
      );
    }
  }
}