title: Search a String Array in Java?
body: <p>How do I search a string array with start with keyword?</p>
  
  <p>for example,</p>
  
  <pre><code>String[] str = { "abcd", "abdc", "bcda"};
  </code></pre>
  
  <p>when my search string is <code>"a"</code> it must show</p>
  
  <pre><code>abcd and abdc
  </code></pre>
  
  <p>when my search string is <code>"abc"</code> then it should be <code>"abcd"</code>.</p>