| 
 
| package Test2; 
 import java.util.Properties;
 
 public class SystemPropertiesDemo {
 
 public static void main(String[] args) {
 Properties pros=System.getProperties();
 //设置属性信息
 //                System.setProperty("myKey", "MyValue");
 //获取某个属性信息
 System.out.println("os.name"+"----"+System.getProperty("os.name"));
 
 /*                for(Object obj:pros.keySet()){
 String str=(String)pros.get(obj);
 System.out.println(obj+"::"+str);
 }*/
 
 }
 
 }
 
 如题,为什么不是Windows 7,而是Windows Vista呢?
 | 
 |