摘要:
1.观察者 1 package designpattern; 2 3 import java.util.ArrayList; 4 5 public class Observer { 6 7 public static void main(String[] args) { 8 Button b = new Button(); 9 b.addActionListener(new MyactionListener());10 b.addActionListener(new MyactionListener2());11 b... 阅读全文