Util.java Source code

Java tutorial

Introduction

Here is the source code for Util.java

Source

public class Util {

    public static String getUnqualifiedName(Class<?> clazz) {
        if (clazz == null)
            return "";
        String name = clazz.getName();
        return (name.substring(name.lastIndexOf('.') + 1));
    }
}