Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.18 KB | None | 0 0
  1.     public static void listChildren(Node current, int depth)
  2.     {
  3.         for (int i = 0; i < current.getChildCount(); i++)
  4.         {
  5.             listChildren(current.getChild(i), depth + 1);
  6.         }
  7.  
  8.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement