forked from kindsword/learning
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPrint.java
More file actions
31 lines (28 loc) · 865 Bytes
/
Copy pathPrint.java
File metadata and controls
31 lines (28 loc) · 865 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/*************************************************************************
> File Name: Print.java
> Author:
> Mail:
> Created Time: 2017年06月06日 星期二 10时18分38秒
************************************************************************/
import java.util.HashMap;
public class Print implements Fun.CallBack {
private HashMap<String, Boolean> hash = new HashMap<String, Boolean>();
public void test1(){
System.out.println("test1");
}
Fun f = new Fun();
public void init() {
f.setListener(this);
}
public void run() {
f.test();
String v = "Test";
hash.put(v,true);
System.out.println("1:" + hash.get(v));
hash.put(v, false);
System.out.println("2:" + hash.get(v));
synchronized(hash) {
System.out.println("Test");
}
}
}