1public static String printClassInformation(Object o){
2 Class<?> cl=o.getClass();
3 System.out.println("Name: "+cl.getSimpleName());
4 System.out.println("Full name: "+cl.getCanonicalName());
5 System.out.println("Methods: "+Arrays.toString(cl.getMethods()));
6}