MethodPool: removed demo call stuff - added printGCStats instead;
[mate.git] / scratch / GCTest.java
1 package scratch;
2
3 import jmate.lang.MateRuntime;
4
5 public class GCTest
6 {
7         public static void main(String[] args)
8         {
9                 List myList = new List(3,
10                         new List(5,
11                                 new List(6,
12                                         new List(10,null))));
13
14                 MateRuntime.printGCStats();
15                 System.out.println("done.");
16         }
17
18
19 class List
20 {
21         public int elem;
22         public List xs;
23
24         public List(int elem, List xs)
25         {
26                 this.elem = elem;
27                 this.xs = xs;
28         }
29 }