System的properties中有很多系统属性:
System.out.println(System.getProperty("os.name"));
System.out.println(System.getProperty("os.version"));
结果:
Mac OS X
10.13.6
???:
System.setProperty("aaabbb","test");
System.out.println(System.getProperty("aaabbb"));