Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

public class Main {

    private static boolean isPrimitiveBoxingType(Object obj) {
        String simplyName = obj.getClass().getSimpleName();
        if (simplyName.equals("Integer") || simplyName.equals("Double") || simplyName.equals("Float")
                || simplyName.equals("Boolean") || simplyName.equals("Long") || simplyName.equals("Byte")
                || simplyName.equals("Short") || simplyName.equals("Byte")) {
            return true;
        } else {
            return false;
        }
    }
}