Output of System.getProperty("os.name") on different operating systems

System.out.println(System.getProperty("os.name"));

operating system output
linux Linux
windows Windows XP

Guess you like

Origin blog.csdn.net/listeningdu/article/details/129583530
Recommended