package lilWorld; public class Testing { /** * @param args * @throws ClassNotFoundException */ public static void main(String[] args) throws ClassNotFoundException { // TODO Auto-generated method stub Blah b = new Blah(); Class c = b.getClass(); String s = c.toString(); System.out.println(s); if (Class.forName("lilWorld.Creeper").isInstance(b)) { System.out.println("yes a creeper!"); } else { System.out.println("not a creeper!"); } if (Class.forName("lilWorld.Blah").isInstance(b)) { System.out.println("yes a blah!"); } else{ System.out.println("not a blah!"); } } }