public Color(int red, int green, int blue){
this.red=red;
this.green=green;
this.blue=blue;
}
public ColorPrototype cloneMe() throws CloneNotSupportedException{
//浅拷贝
return (ColorPrototype)super.clone();
}
public void Display(){
System.out.println(“RGB values are :” + red +”,”+ green+”,”+blue);
}
}
//prototype manager
import java.util.*;
public class ColorManager{
Hashtable colors=new Hashtable();
public ColorPrototype getColor(String name){