Paul Benedict wrote: > Class c = o.getClass(); > if (c instanceof String) { .. } > Can be de-sugared into the new String switch: > > switch (object.getClass().getName()) { > case "java.lang.String": Class names are not unique. Tom Hawtin