title: Multiple markers at this line - Syntax error on token ")", ; expected - Syntax error on token "(", { expected
body: <p>I'm studying Java (sorry for my poor english, it's not my native language) and when I do a "try-finally" block in Eclipse (JavaSE-1.7) in every "try" that I put, appears this message:</p>
  
  <blockquote>
    <p>Multiple markers at this line
      - Syntax error, insert "}" to complete Block
      - Syntax error, insert "Finally" to complete     BlockStatements</p>
  </blockquote>
  
  <p>Here is the full code:</p>
  
  <pre><code>package Java;
  
  public class Arquivo3 {
  
      private Path BdC = Paths.get("C:/xti/files/conta.txt");
      private Charset utf8 = StandardCharsets.UTF_8;
  
      public void armazenarContas(ArrayList&lt;Conta&gt; contas) throws IOException{                
          try(BufferedWriter writer = Files.newBufferedWriter(BdC, utf8)) {
              for (Conta conta : contas) {
                  writer.write(conta.getCliente() + ";" + conta.getSaldo() + "\n");
              }
          }
      }
  
      public ArrayList&lt;Conta&gt; recuperarContas() throws IOException{
          ArrayList&lt;Conta&gt; contas = new ArrayList&lt;Conta&gt;();
          try (BufferedReader reader = Files.newBufferedReader(BdC, utf8)){
              String line = null;
              while((line = reader.readLine()) != null) {
                  String[] t = line.split(";");
                  Conta conta = new Conta(t[0], Double.parseDouble(t[1]));
                  contas.add(conta);
              }
          }finally {
          return contas;  
          }
  
      }
  
      public static void main(String[] args) throws IOException{
  /*
          ArrayList&lt;Conta&gt; contas = new ArrayList&lt;Conta&gt;();
          contas.add(new Conta("Ricardo", 12000.23));
          contas.add(new Conta("Lawrence", 11050.32));
          contas.add(new Conta("Sandra", 18000.21));
          contas.add(new Conta("Beatriz", 23200.09));
      */  
          Arquivo3 operacao = new Arquivo3();
          //operacao.armazenarContas(contas);
          ArrayList&lt;Conta&gt; contas2 = operacao.recuperarContas();
          for (Conta conta : contas2) {
              conta.exibeSaldo();
          }
      }
  
  }
  </code></pre>