posts - 104,  comments - 34,  trackbacks - 0

          package test;

          import java.util.Enumeration;
          import java.util.Properties;

          /**
           * 描述:取得當前的系統信息.
           */
          public class GetSystemV {

              public GetSystemV() {

                  Properties pro = System.getProperties();
                  System.out.println("dir is " + System.getProperty("user.dir"));
                 
                  for (Enumeration enums = pro.propertyNames(); enums.hasMoreElements();) {
                      String item = (String) enums.nextElement();
                      System.out.println(item + ":" + System.getProperty(item));
                  }
              }

              public static void main(String[] args) {
                  new GetSystemV();
              }
          }

          posted on 2007-10-31 14:36 末日風情 閱讀(235) 評論(0)  編輯  收藏 所屬分類: java編程
          <2007年10月>
          30123456
          78910111213
          14151617181920
          21222324252627
          28293031123
          45678910

          常用鏈接

          留言簿(4)

          隨筆分類

          隨筆檔案

          搜索

          •  

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 徐汇区| 茂名市| 珲春市| 新密市| 石阡县| 鄂伦春自治旗| 靖西县| 偏关县| 新干县| 县级市| 赣榆县| 郴州市| 宜良县| 沐川县| 当阳市| 大悟县| 龙口市| 邢台县| 湾仔区| 沐川县| 卢氏县| 铜山县| 左云县| 汽车| 攀枝花市| 名山县| 肥乡县| 德格县| 屯留县| 揭东县| 江阴市| 沅江市| 旅游| 黑河市| 平果县| 武山县| 锦州市| 苍南县| 滕州市| 东源县| 迭部县|