title: Endless loop even when loop is good
body: <pre><code>public class UI extends javax.swing.JFrame{
      public void start(){
          appendResponse(Bot+": Hello, "+Name + "\n");
          appendResponse(Bot + ": You are in a dark room, you have a backpack full of supplies. What will you do?\n");
          if(input.toLowerCase().equals("open backpack")){
              start2();
          }else{
              while(true){
                  appendResponse(Bot + ": Sorry invalid input!\n");
                  start();
                  break;
              }
          }
      }
      private void btnSendActionPerformed(java.awt.event.ActionEvent evt) {                                        
          You = Name + ": " +txtInput.getText()+"\n";
          input = txtInput.getText();
          txtRespond.append(You);
          txtInput.setText("");
          if(input.equals("hi")){ 
              appendResponse(Bot+": Hello, "+Name + "\n");
              start();
          }else{
              appendResponse(Bot + ": say hi to computer\n");
          }
  
      }
  }
  </code></pre>
  
  <p>Both the methods are in the same class. 
  When i typed hi in my textArea the press send
  It keeps appending(to my textArea) " Hello, "+Name
  ": You are in a dark room, you have a backpack full of supplies. What //will you do?"
  and when i typed "open backpack" it responded
  "say hi to computer" instead of calling the start2() method</p>