void recursive(Node n, StringBuilder sb) { Node c = n; while (c != null) { sb.append(c.toString()).append(" --> "); c = c.next; } sb.append("null "); }
public void dump() { System.out.print(this.toString()); System.out.print(" -> "); if(next != null) { next.dump(); } else { System.out.print(" null"); } }
void recursive(Node n, StringBuilder sb) { Node c = n; while (c != null) { sb.append(c.toString()).append(" --> "); c = c.next; } sb.append("null "); }
void recursive(Node n, StringBuilder sb) { Node c = n; while (c != null) { sb.append(c.toString()).append(" --> "); c = c.next; } sb.append("null "); }
void recursive(Node n, StringBuilder sb) { Node c = n; while (c != null) { sb.append(c.toString()).append(" --> "); c = c.next; } sb.append("null "); }
void recursive(Node n, StringBuilder sb) { Node c = n; while (c != null) { sb.append(c.toString()).append(" --> "); c = c.next; } sb.append("null "); }
void recursive(Node n, StringBuilder sb) { Node c = n; while (c != null) { sb.append(c.toString()).append(" --> "); c = c.next; } sb.append("null "); }
void recursive(Node n, StringBuilder sb) { Node c = n; while (c != null) { sb.append(c.toString()).append(" --> "); c = c.next; } sb.append("null "); }
void recursive(Node n, StringBuilder sb) { Node c = n; while (c != null) { sb.append(c.toString()).append(" --> "); c = c.next; } sb.append("null "); }
public void dump() { System.out.print(this.toString()); System.out.print(" -> "); if (next != null) { next.dump(); } else { System.out.print(" null"); } }
public void dump() { System.out.print(this.toString()); System.out.print(" -> "); if(next != null) { next.dump(); } else { System.out.print(" null"); } }
public void dump() { System.out.print(this.toString()); System.out.print(" -> "); if (next != null) { next.dump(); } else { System.out.print(" null"); } }
public void dump() { System.out.print(this.toString()); System.out.print(" -> "); if(next != null) { next.dump(); } else { System.out.print(" null"); } }
public void dump() { System.out.print(this.toString()); System.out.print(" -> "); if(next != null) { next.dump(); } else { System.out.print(" null"); } }
public void dump() { System.out.print(this.toString()); System.out.print(" -> "); if(next != null) { next.dump(); } else { System.out.print(" null"); } }
public void dump() { System.out.print(this.toString()); System.out.print(" -> "); if (next != null) { next.dump(); } else { System.out.print(" null"); } }
private void dump(Node node) { while (node != null) { System.out.println(node.toString()); node = node.next; } }