Mirror of the JODE repository
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
jode/jode/test/NestedAnon.java

17 lines
260 B

public class NestedAnon {
public NestedAnon(int maxdepth) {
class NestMyself {
int depth;
NestMyself son;
public NestMyself(int d) {
depth = d;
if (d > 0)
son = new NestMyself(d-1);
}
}
new NestMyself(maxdepth);
}
}