Java tutorial
//package com.java2s; // This source is subject to the Microsoft Public License (Ms-PL) public class Main { public static String getFullClassName(Class<? extends Object> c) { return c.getName(); } public static String getFullClassName(Object o) { return getFullClassName(o.getClass()); } }