Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

public class Main {
    /**
     * @param clzName class name
     * @return the Class object if the class is exists, else null
     */
    public static Class loadClass(String clzName) {
        try {
            return ClassLoader.getSystemClassLoader().loadClass(clzName);
        } catch (Exception e) {
        }
        return null;
    }
}