Class observer = Observer.class; Class observable = Observable.class; verifyInterface(observer); verifyInterface(observable);
String name = c.getName(); if (c.isInterface()) { System.out.println(name + " is an interface."); } else { System.out.println(name + " is a class."); }