About 157,000 results
Open links in new tab
  1. How do I create a hash table in Java? - Stack Overflow

    May 7, 2015 · It is important to note that Java's hash function is less than optimal. If you want less collisions and almost complete elimination of re-hashing at ~50% capacity, I'd use a Buz Hash …

  2. java - Creating a Hashtable from scratch? - Stack Overflow

    Oct 27, 2011 · Just use an array for your table. You'll need a hash function, and a load factor. The load factor will determine when you resize the table to keep it efficient. A simple hash function …

  3. Simple HashTable implementation using an array in Java?

    You loop for 0 - size when size = 1 so once so you only print out the first value in your hashTable problem is the first value in your hash table is not a real value it's an AVAILABLE you have to …

  4. java - The fundamentals of Hash tables? - Stack Overflow

    Jan 30, 2017 · This is what I was reffering to. guess its string specific (from Java docs): "Since JDK version 1.3, the class java.lang.String caches its hash code, i.e. it calculates the hash …

  5. java - Create Custom Hashtable - Stack Overflow

    Apr 29, 2009 · I need to create a Custom Hashtable extends java.lang.Hashtable and i need to override the get method to achieve the following behavior : if the key == null, it will return a …

  6. Create a Hash Table with two arrays - Stack Overflow

    Nov 6, 2010 · Hash Function A hash function transforms your keys into an index for the first array (array K). A hash function such as MD5 or a simpler one, usually including a modulo operator, …

  7. hashtable - how to create a hash table in java - Stack Overflow

    May 24, 2012 · I`m trying to create a hash table for each dimension - only add a value if I haven't seen it before. I want to create 2 separate hash table for every column. columns contain string …

  8. java - hash table with 2D array - Stack Overflow

    Dec 7, 2014 · I have been asked to create hash table using 2D array. I did it how ever in my put method there is something wrong in my understanding 2D array have to have two loops to do …

  9. java - Creating a hash table with tuple as key - Stack Overflow

    Jul 29, 2019 · Using hash maps to create a table in Java. 0. create tuple of hashmaps from arraylist - Java. 0.

  10. java - Good Hash Function for Strings - Stack Overflow

    Mar 23, 2013 · As a cryptographic function, it was broken about 15 years ago, but for non cryptographic purposes, it is still very good, and surprisingly fast. In the context of Java, you …

Refresh