title: How to get last array values from NsmutableArray
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/7175256/how-to-get-the-last-object-of-an-nsarray">How to get the last object of an NSArray</a>  </p>
  </blockquote>
  
  
  
  <p>In my iPhone application, I want to retrieve the last array value from <code>NSMutableArray</code>: </p>
  
  <pre><code>NSMutableArray *array = [[NSMutableArray alloc] init];
  [array addObject:messages];
  NSLog(@"array : %@", array);
  </code></pre>
  
  <p>In this "array". I having this below values.</p>
  
  <pre><code>hi, hello,
  </code></pre>
  
  <p>I want to take <code>hello</code> values only from the <code>NSMutableArray</code>. </p>
  
  <p>How can I do this? </p>