Issue
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?
Solution
You can get the name and path of the file by using the getName()
and getPath()
methods. (Documentation)
Answered By - AmeyaS
Answer Checked By - Candace Johnson (JavaFixing Volunteer)