A股上市公司传智教育(股票代码 003032)旗下技术交流社区北京昌平校区

 找回密码
 加入黑马

QQ登录

只需一步,快速开始

这是我的代码:
  1.                 Properties curr_sys=System.getProperties();
  2.                 Set<Entry<Object, Object>> s1=curr_sys.entrySet();
  3.                 for(Iterator<Map.Entry<Object,Object>> it=s1.iterator();it.hasNext();){
  4.                         Map.Entry<Object,Object> m1=it.next();
  5.                         Object key=m1.getKey();
  6.                         Object value=m1.getValue();
  7.                         System.out.println(value+":"+value);
复制代码

运行结果:
Java(TM) SE Runtime Environment:Java(TM) SE Runtime Environment
D:\Software\Java\JDK\jre\bin:D:\Software\Java\JDK\jre\bin
25.40-b25:25.40-b25
Oracle Corporation:Oracle Corporation
http://java.oracle.com/:http://java.oracle.com/
;:;
Java HotSpot(TM) 64-Bit Server VM:Java HotSpot(TM) 64-Bit Server VM
sun.io:sun.io
CN:CN
:
SUN_STANDARD:SUN_STANDARD
Service Pack 1:Service Pack 1
Java Virtual Machine Specification:Java Virtual Machine Specification
D:\workspace\Chapter15:D:\workspace\Chapter15
1.8.0_40-b26:1.8.0_40-b26
sun.awt.Win32GraphicsEnvironment:sun.awt.Win32GraphicsEnvironment
D:\Software\Java\JDK\jre\lib\endorsed:D:\Software\Java\JDK\jre\lib\endorsed
amd64:amd64
C:\Users\ADMINI~1\AppData\Local\Temp\:C:\Users\ADMINI~1\AppData\Local\Temp\

:

Oracle Corporation:Oracle Corporation
:
Windows 7:Windows 7
GBK:GBK
D:\Software\Java\JDK\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;D:/Software/Java/JDK/bin/../jre/bin/server;D:/Software/Java/JDK/bin/../jre/bin;D:/Software/Java/JDK/bin/../jre/lib/amd64;D:\Software\Java\JDK\bin;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Windows7Master;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files (x86)\Common Files\Thunder Network\KanKan\Codecs;D:\Software\eclipse-java-luna-SR2-win32-x86_64\eclipse;;.:D:\Software\Java\JDK\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;D:/Software/Java/JDK/bin/../jre/bin/server;D:/Software/Java/JDK/bin/../jre/bin;D:/Software/Java/JDK/bin/../jre/lib/amd64;D:\Software\Java\JDK\bin;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Windows7Master;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files (x86)\Common Files\Thunder Network\KanKan\Codecs;D:\Software\eclipse-java-luna-SR2-win32-x86_64\eclipse;;.
Java Platform API Specification:Java Platform API Specification
52.0:52.0
HotSpot 64-Bit Tiered Compilers:HotSpot 64-Bit Tiered Compilers
6.1:6.1
C:\Users\Administrator:C:\Users\Administrator
:
sun.awt.windows.WPrinterJob:sun.awt.windows.WPrinterJob
GBK:GBK
1.8:1.8
D:\workspace\Chapter15\bin:D:\workspace\Chapter15\bin
Administrator:Administrator
1.8:1.8
cn.itcast.io.OutputStreamDemo:cn.itcast.io.OutputStreamDemo
D:\Software\Java\JDK\jre:D:\Software\Java\JDK\jre
64:64
zh:zh
Oracle Corporation:Oracle Corporation
sun.awt.windows.WToolkit:sun.awt.windows.WToolkit
mixed mode:mixed mode
1.8.0_40:1.8.0_40
D:\Software\Java\JDK\jre\lib\ext;C:\Windows\Sun\Java\lib\ext:D:\Software\Java\JDK\jre\lib\ext;C:\Windows\Sun\Java\lib\ext
D:\Software\Java\JDK\jre\lib\resources.jar;D:\Software\Java\JDK\jre\lib\rt.jar;D:\Software\Java\JDK\jre\lib\sunrsasign.jar;D:\Software\Java\JDK\jre\lib\jsse.jar;D:\Software\Java\JDK\jre\lib\jce.jar;D:\Software\Java\JDK\jre\lib\charsets.jar;D:\Software\Java\JDK\jre\lib\jfr.jar;D:\Software\Java\JDK\jre\classes:D:\Software\Java\JDK\jre\lib\resources.jar;D:\Software\Java\JDK\jre\lib\rt.jar;D:\Software\Java\JDK\jre\lib\sunrsasign.jar;D:\Software\Java\JDK\jre\lib\jsse.jar;D:\Software\Java\JDK\jre\lib\jce.jar;D:\Software\Java\JDK\jre\lib\charsets.jar;D:\Software\Java\JDK\jre\lib\jfr.jar;D:\Software\Java\JDK\jre\classes
Oracle Corporation:Oracle Corporation
\:\
http://bugreport.sun.com/bugreport/:http://bugreport.sun.com/bugreport/
UnicodeLittle:UnicodeLittle
little:little
windows:windows
amd64:amd64

0 个回复

您需要登录后才可以回帖 登录 | 加入黑马