Here you can find the source of className(Object value)
public static String className(Object value)
//package com.java2s; //License from project: Apache License public class Main { /**//from ww w. j a v a2 s .co m * Returns the type name of the given value */ public static String className(Object value) { return name(value != null ? value.getClass() : null); } /** * Returns the type name of the given type or null if the type variable is * null */ public static String name(Class<?> type) { return type != null ? type.getName() : null; } }