title: Working with a vector of maps in Java
body: <p>I'd like to have a vector which contains some (possibly many) Hashmaps of which have a string as the key and an integer as the value. How could I check whether my vector of Hashmaps already contains a certain key, and if so, increment the corresponding key's value by 1?</p>
  
  <p>What I am trying to accomplish is to count the number of times a word occurs in a document. My thinking was that I could use a HashMap to store the number of times a word occurs. But I want to check if my vector already contains a map with a given word before adding a new map to my vector. If my vector DOES contain a map with the given word, increment the value field (in this case numOfTimesOccurredSoFar). </p>
  
  <p>Is this possible?</p>