I have a String that provides an absolute path to a file (including the file name). I want to get just the file\'s name. What is the easiest way to do this?
String
new File(absolutePath).getName();