GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

No menu could be recovered. Follow the blue links in the page.

This view

  • Original page
  • New address

GeezerVison is showing raw.githubusercontent.com — raw.githubusercontent.com

class HashMap { private int hsize; private LinkedList[] buckets; public HashMap(int hsize) { buckets = new LinkedList[hsize]; for (int i = 0; i < hsize ; i++ ) { buckets[i] = new LinkedList(); // Java requires explicit initialisaton of each object } this.hsize = hsize; } public int hashing(int key) { int hash = key % hsize; if(hash < 0) hash += hsize; return hash; } public void insertHash(int key) { int hash = hashing(key); buckets[hash].insert(key); } public void deleteHash(int key) { int hash = hashing(key); buckets[hash].delete(key); } public void displayHashtable() { for (int i = 0;i < hsize ; i++) { System.out.printf("Bucket %d :",i); buckets[i].display(); } } }
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.