Java tutorial
//package com.java2s; public class Main { /** * <pre> * Get name of a class. * </pre> */ @SuppressWarnings("rawtypes") public static String getTag(Class c) { return c.getSimpleName(); } }