title: How to compare an object containing a string?
body: <p>I have an array that contains the following strings</p>
  
  <pre><code>Object[] array = {"Tom","Jim","George"};
  </code></pre>
  
  <p>How can I compare each object as a String?</p>
  
  <p><strong>* <em>Array must be type of Object and contain only String type of objects for my problem.Using String[] is pretty much obvious enough.</em></strong></p>