title: Verify whether the file path contains particular String or not using java
body: <p>I have one file path which is populated using File interface:-</p>
  
  <pre><code>File folder = new File("C:\\Program Files\\SmartBear\\ReadyAPI-2.2.0\\bin")
  File[] listOfFiles = folder.listFiles();
  File fOut = listOfFiles[0];
  
  System.out.println(fOut)
  </code></pre>
  
  <p>It prints all the files inside bin folder. lets say, actions, ext, listeners</p>
  
  <p>Now, I need to verify using if else statement whether the files inside the bin folder contains the particular file I am searching for?</p>
  
  <p>Can we do it using java?</p>