title: Search directory for any .XML file
body: <p>I am trying to get a piece of code working. The aim is to check if there is an .XML file in a certain directory.</p>
  
  <p>This is what I've got so far.</p>
  
  <pre><code>File f = new File("saves/*.xml");
  
      if(f.exists()) {
          /* Do Something */
      } else {
          /* do something else */
      }
  </code></pre>
  
  <p>I'm trying to use a wildcard to search for any file ending in .XML, am I missing something simple here? Is there an easier way to check that at least one .XML file exists in a specified directory?</p>
  
  <p>thanks in advance.</p>