title: Recursive Search Function Java
body: <pre><code>public int search(String type) {
    for (int i = 0; i &lt; size; i++) {
      if (array[size-1-i].contains(type)) return i;
    }
    return -1;
  }
  </code></pre>
  
  <p>I am having trouble doing a recursive function of this previous search function , can somebody help me ?</p>