Java array of Hashtables -


I need an array of hashtable in such a program which is collecting all the words from the given set of documents.

The array has a hashable string of index 1 - & gt; Double which stores a word, and calculates it for Document 1 (array index 100 = hashtable of document number 100).

I do not need help using this data structure, I declare the hashtale array as follows:

  hashtable & lt; String, double & gt; [] H1 = new hashtable & lt; String, double & gt; [];   

... but it does not compile.

(Note: In the above declaration, the above declaration is dual instead of an integer.)

Question: How do you create an array of hashtables that are string-> Double ???

stores

bus access

  @SuppressWarnings ("uncheck") hashtable & lt; String, double & gt; [] H = (hashtable> string, double> gt; []) new hashtable & lt;?,? & Gt; [10]; H [0] = new hashtable & lt; String, double & gt; ();    

Comments

Popular posts from this blog

qt - switch/case statement in C++ with a QString type -

python - sqlite3.OperationalError: near "REFERENCES": syntax error - foreign key creating -

Python's equivalent for Ruby's define_method? -