I want to know if there is any method in JAVA which can return a file path of the file name given?