Search This Blog

Detect OS in Java

public class Test {

    public static void main(String[] args) {
        System.out.println(System.getProperty("os.name"));
    }

}



No comments:

Post a Comment