public static boolean exists(String path){
  File f=new File(path);
  return f.exists();
}

public static boolean exists ( String path ) { File f = new File ( path ) ; return f . exists ( ) ; }
checks if the path given exists . no distinction is made between a file or directory
