title: Java does not know when file does NOT exist
body: <p>Java knows when a file exists as it prints out "File found" but when the file does not exists it does NOT print "File not found"</p>
  
  <pre><code>    File file = new File(filePath, "Test_1.exe");
  
      if (file.exists()){
          System.out.println("File found");
      }else{
          System.out.println("File not found");
      }
  </code></pre>
  
  <p>does any one know why? the file path is correct as I have double checked this. Just weird that if the file does not exists it wont print out but will if it does.</p>
  
  <p>I have also tried if (!file.exists()) with not luck!</p>