public void display() {
    
    // Instantiate an Entry
    BufHTEntry cur;
    
    System.out.println("HASH Table contents :FrameNo[PageNo]");
    
    // Interate through the Page Table array
    for (int i = 0; i < HTSIZE; i++) {
      System.out.println("Array Index: " + i);
      if (ht[i] != null) {
        // Iterate through the linked list in the current bucket
        for (cur = ht[i]; cur != null; cur = cur.next) 
          System.out.println("\t" + cur.frameNo + "[" + cur.pageNo.pid + "]");
      } else {
        System.out.println("\t EMPTY");
      }
    }
    System.out.println("");
  } // end display()