title: Removing person name
body: <p>i'm creating a method to Delete the first instance, p, of a Person with the name Mikel from this Person's friend list and delete this Person from p's friend list. Return true if and only if p was found on this Person's friend list. i run my code but it didn't work, i couldn't figure out the problem. can someone help me.</p>
  
  <pre><code>String name;
  
  private ArrayList&lt;Person&gt; friend = new ArrayList&lt;Person&gt;();
  
  public boolean deleteFriend(String Mike)
  {
      for (Person p : friend ) {
          if (p.name.equals(Mike)) {
              p.friend.remove(Mike);
              break;
          }
          else{
              return false;
          }           
      }
      return true;
  }
  </code></pre>