Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import java.util.Properties;

public class Main {
    public static boolean isWindowsOS() {

        Properties prop = System.getProperties();
        String os = prop.getProperty("os.name");
        // log.info("platform is:"+os);
        if (os.contains("Windows")) {
            return true;
        }

        return false;
    }
}