Write a Java Program to Determine the name and version of the operating system
1 2 3 4 5 6 7 8 9 |
class Main { public static void main(String[] args) { // get the name of operating system String operatingSystem = System.getProperty("os.name"); System.out.println(operatingSystem); } } |