title: Java: Syntax error on token "catch", ( expected
body: <p>I keep getting an error in the Eclipse IDE:</p>
  
  <pre class="lang-none prettyprint-override"><code>Syntax error on token "catch", ( expected
  </code></pre>
  
  <p>I'm not sure where the syntax error is, could someone help please?</p>
  
  <pre><code>public class ReadCSV {
  
      private static HashMap &lt;String, String&gt; rankDomainMap; 
  
      public ReadCSV() {
          rankDomainMap = new HashMap&lt;&gt;();
      }
  
      public HashMap getHashmap() {
          return rankDomainMap;
      }
  
      public void run(int id) {
  
          File top1m = new File("top-1m.csv");
  
          String line = "";
  
          int blockSize = 10000;
  
          try ( FileReader fileReader = new FileReader(top1m); BufferedReader br = new BufferedReader(fileReader) )
              {
                  while ( ((line = br.readLine()) != null) ) {
                      String parts[] = line.split(",");
                      for (int count=1; count &lt; blockSize; count++){
                          if ( (Integer.parseInt(parts[0]) &gt;= (id) ) &amp;&amp; (Integer.parseInt(parts[0])+blockSize &lt; id) ) {
                                  rankDomainMap.put(parts[0], parts[1]);
                          }
                      }
                  }
  
              }
  
  
          System.out.println( rankDomainMap.toString() );
  
          catch (FileNotFoundException e)  {
              e.printStackTrace();
          }
      }
  }
  </code></pre>