summaryrefslogtreecommitdiffstats
path: root/test/Java/java_version_image/src4/NestedExample.java
diff options
context:
space:
mode:
Diffstat (limited to 'test/Java/java_version_image/src4/NestedExample.java')
-rw-r--r--test/Java/java_version_image/src4/NestedExample.java31
1 files changed, 31 insertions, 0 deletions
diff --git a/test/Java/java_version_image/src4/NestedExample.java b/test/Java/java_version_image/src4/NestedExample.java
new file mode 100644
index 0000000..531f2e9
--- /dev/null
+++ b/test/Java/java_version_image/src4/NestedExample.java
@@ -0,0 +1,31 @@
+// 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();
+ }
+}