MCPcopy Create free account
hub / github.com/DuGuQiuBai/Java / get

Method get

day24/code/day24_Thread/src/cn/itcast_06/Student.java:24–37  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

22 }
23
24 public synchronized void get() {
25 if (!this.flag) {
26 try {
27 this.wait();
28 } catch (InterruptedException e) {
29 e.printStackTrace();
30 }
31 }
32
33 System.out.println(this.name + "---" + this.age);
34
35 this.flag = false;
36 this.notify();
37 }
38}

Callers 11

runMethod · 0.45
runMethod · 0.45
actionPerformedMethod · 0.45
actionPerformedMethod · 0.45
setDisUsersMethod · 0.45
createSingleChatFrameMethod · 0.45
setSingleFrameMethod · 0.45
mainMethod · 0.45
runMethod · 0.45
mainMethod · 0.45
mainMethod · 0.45

Calls

no outgoing calls

Tested by 1

mainMethod · 0.36