CSC300: Does this work? [13/13] Previous pageContents

01
02
03
04
05
06
07
08
09
10
  public void insert (double item) {  
    first = insertH (first, item);
  }
  private static void insertH (Node x, double item) { 
    if (x == null || x.item >= item) {
      new Node (item, x);
    } else {
      x.next = insertH (x.next, item);
    }
  }

Previous pageContents