public static void main(String[] args) {
		Creator[] creators=new Creator[2];
		creators[0]=new ConcreteCreatorA();
		creators[1]=new ConcreteCreatorB();
		for(Creator c:creators){
			Product product=c.factroyMethod();
			System.out.println("Created "+product.getClass().getName());
		}
	}