One of hundreds of answers available with our premium content service.
A: To get the operating system name in Java use the static System.getProperty("os.name") method, which returns a string. Other operating system property keys include os.arch for the hardware architecture and os.version for the version number, as below.
… full answer hidden
Premium members click below for full answer
How do I get the name of the operating system?