title: How to find substring without String methods using char arrays?
body: <p>You are not allowed to use any inbuilt functions like <code>indexOf()</code>, <code>contains()</code> or matches() of String class.</p>
  
  <p>Find string apple in string webapple using given char arrays?   </p>
  
  <pre><code>String webapple ="webapple";
  String apple="apple";
  char[] webappleArray=webapple.toCharArray();
  char[] appleArray = apple.toCharArray();
  </code></pre>
  
  <p>write a function </p>
  
  <pre><code>public boolean isPresent(char[] apple ,char[] webapple ){
      //your code here 
  }
  </code></pre>