好奇,挺有趣的,研究研究
//可获得当前的系统和用户属性:
public class Study4 {
public static void main(String[] args) {
String osName = System.getProperty("os.name");
String user = System.getProperty("user.name");
System.out.println("当前操作系统是:" + osName);
System.out.println("当前用户是:" + user);
}}