is Windows - Java Native OS

Java examples for Native OS:Windows

Description

is Windows

Demo Code


//package com.java2s;

public class Main {
    public static boolean isWin() {
        boolean isWin = false;
        String osName = System.getProperty("os.name");
        if (osName.contains("Windows"))
            isWin = true;/*from  www.j  a va2s.com*/
        return isWin;
    }
}

Related Tutorials