title: HashMap nor HashTable are not working
body: <p>See, I'm trying to make a morse-text and viceversa conversor. I saw online a lot of tutorials using <strong>HashTables</strong> or <strong>HashMap</strong>. The problem here is, I don't know if there's something wrong with my computer, or my JVM/JRE.</p>
  
  <p>The declaration methods I've saw are these:</p>
  
  <pre><code> HashMap map1 = new HashMap();
   Hashtable&lt;String, String&gt; map2 = new Hashtable&lt;String, String&gt;();
   Map map3 = new HashMap();
  </code></pre>
  
  <p>But when trying to add some data <code>map1.put("A", ".-");</code> and compiling, it shows off the error message: <em>"error:  expected"</em></p>
  
  <p>I don't know what am I doing wrong, because I've seen and emulated the very same code from other people's tutorial.</p>
  
  <p>I obviously imported java.util.*</p>
  
  <p>Please, I don't even know why this is not working on me.</p>
  
  <p><strong>edit:</strong> Sorry for the lack of information, I took a screenshot of the error (there are like 4 of them for every letter).</p>
  
  <p>This is my code:</p>
  
  <pre><code>HashMap morse = new HashMap();
  morse.put("A", ".-");
  morse.put("B", "-...");
  morse.put("C", "-.-.");
  //And so on with every letter...
  </code></pre>
  
  <p><a href="http://i.imgur.com/1s6SWd8.png" rel="nofollow">http://i.imgur.com/1s6SWd8.png</a> &lt;-- This is the screenshot of the javac error.</p>
  
  <p>Thank you before hand for lending me a hand.</p>