title: Error else without if
body: <p>I'm having an error in my program: <code>else without if</code> however, I think that I have a perfectly good <code>if</code> and <code>else</code>. I think the problem is because i have a ton of <code>try/catches</code>. I only have one error and thats it. Heres my code:</p>
  
  <pre><code>     BufferedReader br = null;
      try {
          br = new BufferedReader(new FileReader("pass.txt"));
      } catch (FileNotFoundException ex) {
          JOptionPane.showMessageDialog(rootPane,"Please run setup. Password file not found");
          Logger.getLogger(NewJFrame.class.getName()).log(Level.SEVERE, null, ex);
      }
          try {
              StringBuilder sb = new StringBuilder();
              String line = null;
              try {
                  line = br.readLine();
              } catch (IOException ex) {
                  Logger.getLogger(NewJFrame.class.getName()).log(Level.SEVERE, null, ex);
              }
  
              while (line != null) {
                  sb.append(line);
                  sb.append(System.lineSeparator());
                  try {
                      line = br.readLine();
                  } catch (IOException ex) {
                      Logger.getLogger(NewJFrame.class.getName()).log(Level.SEVERE, null, ex);
                  }
              }
              String cool = sb.toString();
              char[] input = jPasswordField1.getPassword();
              if (input.equals(cool)); {
                  JOptionPane.showMessageDialog(rootPane,"Password is correct!");
  
              } finally {
              try {
                  br.close();
              } catch (IOException ex) {
                  Logger.getLogger(NewJFrame.class.getName()).log(Level.SEVERE, null, ex);
              }
          }
          }   catch (FileNotFoundException ex) {
              Logger.getLogger(NewJFrame.class.getName()).log(Level.SEVERE, null, ex);
          } finally {
               try {
                   br.close();
               } catch (IOException ex) {
                   Logger.getLogger(NewJFrame.class.getName()).log(Level.SEVERE, null, ex);
               }
      }
      char[] input = jPasswordField1.getPassword();
  
  }                                                      
  </code></pre>