I don't get why the below code is not working? Could anybody assist? I have also tried with
public static void printObjectType(Object o) {
    //write your code here
    System.out.println("Solution." + o.getClass().getCanonicalName().substring(33));
}