Advertisement
Guest User

Untitled

a guest
May 4th, 2024
36
0
3 days
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.36 KB | None | 0 0
  1. public class Test {
  2.     public static void main(String[] args) throws Exception {
  3.         new A(250);
  4.     }
  5. }
  6.  
  7. class A {
  8.     long l1;
  9.     long l2;
  10.     long l3;
  11.     long l4;
  12.     A first;
  13.     A second;
  14.  
  15.     public A(int depth) {
  16.         if (depth > 0) {
  17.             first = new A(depth - 1);
  18.             second = new A(depth - 1);
  19.         }
  20.     }
  21. }
  22.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement