test11

```java
package com.concurrency.cookbook.ch1;

public class Calculator implements Runnable {
    private int number;

    public Calculator(int number) {
        this.number = number;
    }

    @Override
    public void run() {
        for (int i = 1; i < 10; i++) {
            System.out.printf("%s: %d * %d = %d\n",
                    Thread.currentThread().getName(), number, i, i * number);
        }
    }
}
```
posted @ 2014-04-09 01:50  wouldguan  阅读(147)  评论(0编辑  收藏  举报