title: 'Try without catch error', ')' expected, illegal start of expression..?
body: <p>I'm getting these errors in the ending curly brackets in the code below. Can someone tell me why these errors are coming up? I thought code was meant to end with curly brackets.</p>
  
  <pre><code>      String line = "";
                      while ((line = reader.readLine()) != null) {
                          buffer.append(line);
                      }
  
                      movieData.setText(buffer.toString());
  
                  } catch (MalformedURLException e) {
                      e.printStackTrace();
                  } catch (IOException e) {
                      e.printStackTrace();
                  } finally {
                      //will check if connection is running or not and will disconnect accordingly
                      if (connection != null) {
                          connection.disconnect();
                      }
                      try {
                          try {
                              reader.close();
                          } catch (IOException e) {
                              e.printStackTrace();
                          }
                      }
                  }
              }
  </code></pre>