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 isMacOs() {

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

        return false;
    }
}