publicstaticvoidmain(String [] args){
Say say =newSay();newThread(newRunnable(){@Overridepublicvoidrun(){while(true){
say.add();}}}).start();newThread(newRunnable(){publicvoidrun(){while(true){
say.get();}}}).start();newThread(newRunnable(){publicvoidrun(){while(true){
say.get();}}}).start();}