public static void main(String[] args){
		Class c = null;
		try{
			c = Class.forName("org.jimmy.grammar.FancyToy");
			//Can't work.
			//c = Class.forName("org.jimmy.grammar.Chap14Q1.FancyToy");
		}catch(ClassNotFoundException e){
			System.out.println("Can't find FancyToy.");
			System.exit(1);
		}
		printInfo(c);
		for(Class face : c.getInterfaces()){
			printInfo(face);
		}
		
		Class up = c.getSuperclass();
		Object obj = null;
		try{
			obj = up.newInstance();//该class必须有默认的构造函数；
		}catch(InstantiationException e){
			System.out.println("Can not instantiate");
		}catch(IllegalAccessException e){
			System.out.println("Can not access");
			System.exit(1);
		}
		printInfo(obj.getClass());
	}