title: Why is there the compile error, " ; expected " for my Java Code?
body: <p>I really do not understand why I am getting this compile error after the parentheses for <code>"Map&lt;String, Integer&gt; buildTable(){"</code>.<br>
  Here is the code I am working on: I already have the city class defined.</p>
  
  <pre><code>import java.util.Map;
  import java.util.HashMap;
  
  public class CityMap{
  
  public static void main(String[] args){  
    String _city;
    Map&lt;String, Integer&gt; cityTable = buildTable();
  
    Map&lt;String, Integer&gt; buildTable(){
       String aCity;
       Map&lt;String, Command&gt; result = new HashMap&lt;String, Command&gt;();
  
       aCity = new City();
       result.put("NYC", 100000);
  
  
       aCity = new City();
       result.put("Boston", 500);
  
        return result;
   }
  </code></pre>
  
  <p>I am a beginner, so any explanation is welcome.</p>