Results 1 to 4 of 4

Thread: How to use hashtable to replace content

  1. #1
    Join Date
    Oct 2008
    Posts
    93

    How to use hashtable to replace content

    I am using array of hashtables. jshashtable is a JavaScript implementation of a hash table. I have used getSchema method will eventually read in data to build screens on the phone dynamically from an XML file, but for now I've hard coded the method to do some testing. I have replace the word exclusive with multiple, the radio button group becomes a check box group.

  2. #2
    Join Date
    Oct 2008
    Posts
    167

    Re: How to use hashtable to replace content

    All Elements in HashMap can be removed by clear() method. Clear() method in HashMap clear HashMap object and size of the HashMap will become 0

    Code:
    public class HashTable extends AbstractHashTable {
    public HashTable (int tableSize);//create the table size
    private HashTable ();
    public int getSize (); //through this you can get the size of the Hash table
    public int hashValue (String key);//set the flash value
    public int probeHashValue (String key);set the string key
    
    public boolean put (String key, Object value);//set the boolean value with string key and value
    }

  3. #3
    Join Date
    Dec 2008
    Posts
    161

    Re: How to use hashtable to replace content

    js hashtable is a JavaScript implementation of a hash table. You need to update your implementation of HashTable.java. It associates objects ("keys") with other objects ("values"). Each key is associated with precisely one value. You also need to provide a driver class HashTablePlotData.java, which will generate gnuplot data. The driver class HashTablePlotData will output a gnuplot file which in turn will generate a PostScript file like success.ps, unsuccess.ps, and longest.ps. Your program will be executed as "java HashTablePlotData putfile [findfile] ", where putfile and findfile are text files containing items.

  4. #4
    Join Date
    Jan 2009
    Posts
    143

    Re: How to use hashtable to replace content

    JavaScript doesn't complain if you try to use objects other than strings and numbers inside square brackets, The output, consisting of multiple data records, is printed to the standard output stream (System.out in Java). Each line contains a record corresponding to a load factor. The requested table capacity is the number of distinct keys in putfile. it is often desirable to use other kinds of objects as keys.

Similar Threads

  1. HashMap vs HashTable
    By Joyjeet in forum Software Development
    Replies: 6
    Last Post: 04-01-2011, 09:07 PM
  2. Javascript to replace content of div
    By Kalyug in forum Software Development
    Replies: 7
    Last Post: 20-05-2010, 10:10 AM
  3. Hashtable vs Vector
    By Vodka in forum Software Development
    Replies: 5
    Last Post: 23-02-2010, 02:43 AM
  4. Manipulating a hashtable
    By Miles Runner in forum Software Development
    Replies: 5
    Last Post: 12-02-2010, 01:20 AM
  5. C# Hashtable vs list vs dictionary
    By Zaafir in forum Software Development
    Replies: 3
    Last Post: 31-07-2009, 12:36 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,016,348.78949 seconds with 17 queries