Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DuGuQiuBai/Java
/ run
Method
run
day23/code/day23_Thread/src/cn/itcast_06/MovieTicket.java:7–17 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
5
private
static
int
tickets = 100;
6
7
@Override
8
public
void
run() {
9
// ����100��Ʊ
10
// int tickets = 100;
11
12
while
(true) {
13
if
(tickets > 0) {
14
System.out.println(getName() +
"���ڳ��۵�"
+ (tickets--) +
"��Ʊ"
);
15
}
16
}
17
}
18
}
Callers
nothing calls this directly
Calls
1
getName
Method · 0.45
Tested by
no test coverage detected