blob: ac4edd5e56c39a0fef7a003844b50889159b429d (
plain)
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
32
33
34
35
|
// SPDX-License-Identifier: MIT
//
// Copyright The SCons Foundation
// import java.util.*;
public class NestedExample
{
public NestedExample()
{
new Thread() {
public void start()
{
new Thread() {
public void start()
{
try {Thread.sleep(200);}
catch (Exception e) {}
}
};
while (true)
{
try {Thread.sleep(200);}
catch (Exception e) {}
}
}
};
}
public static void main(String argv[])
{
new NestedExample();
}
}
|