title: How to check if file exists knowing only file name?
body: <p>In Java using Maven project we may read file's content as a stream by knowing only file's name, for example: </p>
  
  <pre><code>InputStream in = getClass().getResourceAsStream("/" + fileName);
  </code></pre>
  
  <p>But is there way to check if the file exists without indicating the whole path, just passing file name? </p>