how to get only the file name from the given path............
example1:
String str1="C:\New Folder\My Data\kk.png"
From the above how can we get only the file kk.png
example2:
String str1="C:\New Folder\My Data\Java\Project\yy.bmp"
From the above how can we get only the file yy.bmp