Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 27-07-2009
Member
 
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.
Reply With Quote
  #2  
Old 27-07-2009
Member
 
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
}
Reply With Quote
  #3  
Old 27-07-2009
Member
 
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.
Reply With Quote
  #4  
Old 27-07-2009
Member
 
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.
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "How to use hashtable to replace content"
Thread Thread Starter Forum Replies Last Post
HashMap vs HashTable Joyjeet Software Development 6 04-01-2011 09:07 PM
Javascript to replace content of div Kalyug Software Development 7 20-05-2010 10:10 AM
Hashtable vs Vector Vodka Software Development 5 23-02-2010 02:43 AM
Manipulating a hashtable Miles Runner Software Development 5 12-02-2010 01:20 AM
C# Hashtable vs list vs dictionary Zaafir Software Development 3 31-07-2009 12:36 PM


All times are GMT +5.5. The time now is 05:11 PM.