title: Print type of file in java
body: <p>How do I print the type of a file in java?</p>
  
  <p>I am able to print the length, whether it is readable or writable, but can you suggest a way to print the type of file?</p>
  
  <p>Is there any built in method to find the type of file?</p>