I just wanted to know how do I get the file's name and path using the java.io.File. is there any function which does it or should i do it manually?
CodePudding user response:
You can get the name and path of the file by using the getName() and getPath() methods. (Documentation)
