Button b = new Button();; printName(b);
Class c = o.getClass(); String s = c.getName(); System.out.println(s);