Datasets:

ArXiv:
License:
File size: 565 Bytes
c574d3a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package bookstoreex;

/**
 * Created by Administrator on 2017/6/16.
 */
public class Main
{
    public static void main(String[] args)
    {
        BookStore bookStore = new BookStore();
        Student xiaoming = new Student("小明", bookStore);
        Student xiaohua = new Student("小华", bookStore);
        Student xiaozhang = new Student("小张", bookStore);
        bookStore.newBookComing("知音漫客");
        bookStore.newBookComing("故事会");
        bookStore.newBookComing("看天下");
        bookStore.registerObserver(xiaohua);
    }
}