Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

public class Main {

    @SuppressWarnings("rawtypes")
    private static boolean isBasicType(Class typeClass) {
        if (typeClass.equals(Integer.class) || typeClass.equals(Long.class) || typeClass.equals(Float.class)
                || typeClass.equals(Double.class) || typeClass.equals(Boolean.class) || typeClass.equals(Byte.class)
                || typeClass.equals(Short.class) || typeClass.equals(String.class)) {

            return true;

        } else {
            return false;
        }
    }
}