not able to execute the method based on OS in JAVA

Printable View