Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

public class Main {
    public static boolean isAndroid() {
        return isAndroid(System.getProperty("java.vm.name"));
    }

    public static boolean isAndroid(String paramString) {
        paramString = paramString.toLowerCase();
        return (paramString.contains("dalvik")) || (paramString.contains("lemur"));
    }
}