文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>【Java】get SystemProperties

【Java】get SystemProperties

时间:2010-09-21  来源:xiangjinling

get SystemProperties

Properties pros=System.getProperties();
Enumeration enumer=pros.propertyNames();

int i=1;
while(enumer.hasMoreElements())
{
String ddle=(String) enumer.nextElement();
System.out.print(i+":"+ddle+"___");
System.out.println(System.getProperty(ddle));
i++;
}

----------------------------------------------

1:java.runtime.name___Java(TM) 2 Runtime Environment, Standard Edition
2:sun.boot.library.path___C:Program FilesJavajre1.5.0_15bin
3:java.vm.version___1.5.0_15-b04
4:java.vm.vendor___Sun Microsystems Inc.
.

.

47:file.separator___
48:java.vendor.url.bug___http://java.sun.com/cgi-bin/bugreport.cgi
49:sun.cpu.endian___little
50:sun.io.unicode.encoding___UnicodeLittle
51:sun.desktop___windows
52:sun.cpu.isalist___pentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386 i86

相关阅读 更多 +
排行榜 更多 +
辰域智控app

辰域智控app

系统工具 下载
网医联盟app

网医联盟app

运动健身 下载
汇丰汇选App

汇丰汇选App

金融理财 下载