Java
IBM
Recherches
Sites
Linux/390
XML
Download
Wap
Internet
VM
allProperties
[allProperties] [verifHost] [MakeThread]

Affiche l'environnement de travail :

import java.util.*;
import java.io.*;

   class allProperties {
     public static void main(String argv[]) {
     Properties props = System.getProperties();

     for (Enumeration enum = props.propertyNames();
               enum.hasMoreElements();)
               {
                 String key = (String)enum.nextElement();
                 System.out.println(key + " = " +
                               (String)(props.get(key)));
               }
     }
  }