public static Shape getShape( String type ) throws ClassNotFoundException, InstantiationException, IllegalAccessException{
 Class shape =   Class.forName( type );
return (Shape)shape.newInstance();
}
Shape circle = ShapeFactory.getShape("Circle");
Shape rectangle = ShapeFactory.getShape("Rectangle");
怎么 java.lang.ClassNotFoundException: Circle 老是出这个错误啊Class.forName java