rt

解决方案 »

  1.   

    package redtroy.test;/**
     * <p>Title: </p>
     * <p>Description: </p>
     * <p>Copyright: Copyright (c) 2005</p>
     * <p>Company: </p>
     * @author not attributable
     * @version 1.0
     */public class Local {
      public Local() {
      }
      public static void main(String[] args) {
        java.util.Properties ps=System.getProperties();
        java.util.Enumeration e=ps.propertyNames();
        System.out.println(ps.getProperty("user.name"));
        while(e.hasMoreElements()){
    System.out.println(      (String)e.nextElement());
        }
      }}