angeloeboy10

Untitled

Oct 13th, 2021
562
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.         System.out.println("Root node: " + html.getRoot());
  2.         System.out.println("Parent Node: ");
  3.         System.out.println("\tZuniga");
  4.         System.out.println("\thead");
  5.         System.out.println("\tbody");
  6.         System.out.println("\tul");
  7.         System.out.println("\th2");
  8.  
  9.         System.out.println("Siblings: ");
  10.         System.out.println("\thead and body");
  11.         System.out.println("\tmeta and title");
  12.         System.out.println("\tul, h1 and h2");
  13.         System.out.println("\tli and li");
  14.  
  15.         System.out.println("One level subtrees: ");
  16.  
  17.         System.out.println("\tZuniga - head/body ");
  18.         System.out.println("\thead - meta/title ");
  19.         System.out.println("\tbody - ul/h1/h2 ");
  20.         System.out.println("\tul - li/li ");
  21.  
  22.  
  23.  
  24.         System.out.println("Nodes per level: ");
  25.         System.out.println("\tLevel 0 - Naco");
  26.         System.out.println("\tLevel 1 - head and body");
  27.         System.out.println("\tLevel 2 - meta, title, ul, h1 and h2");
  28.         System.out.println("\tLevel 3 - li, li, and a");
  29.  
  30.         System.out.println("Depth: " + html.getDepth());
  31.         System.out.println("Degree of each one-level subtree: ");
  32.         System.out.println("\tSubtree Zuniga: 2");
  33.         System.out.println("\tSubtree head: 2");
  34.         System.out.println("\tSubtree body: 3");
  35.         System.out.println("\tSubtree ul: 2");
  36.         System.out.println("\tSubtree h2: 1");
  37.  
  38.         System.out.println("Breadth First \n\tZuniga, head, body, meta, title, ul, h1, h2, li, li a");
  39.         System.out.println("Preorder \n\tZuniga, head, meta, title, body, ul, li, li, h1, h2, a");
  40.         System.out.println("Postorder \n\tmeta, title, head, li, li, ul, a, h2, h1, body, html ");
RAW Paste Data