title: How to parse a Hashmap in java 1.4
body: <p>Hi i'm working with  java 1.4 and iwant to implement this :</p>
  
  <pre><code>// protected HashMap            droppedFileTarget;
  JExpression[] params = new JExpression[2];
  
  for (String extension   : droppedFileTarget.keySet()) {
    String  field = droppedFileTarget.get(extension);  
  
    params[1]=VKUtils.toExpression(ref, extension);
    params[2]=VKUtils.toExpression(ref, field);
  }                               
  </code></pre>
  
  <p>but i'm getting this compilation error :</p>
  
  <pre><code>type mismatch : can not convert from Object to String
  </code></pre>
  
  <p>Even after type cast but the error persists :</p>
  
  <pre><code>   for (String extension   : (String) droppedFileTarget.keySet())
  </code></pre>