java如何操做字符串取得绝对路径中的文件名及文件夹名

最近项目须要获取手机图片的路径,而后记录图片的文件名及其文件夹名。 用到的方法为两种: int java.lang.String.lastIndexOf(int c) Returns the last index of the code point c, or -1. The search starts at the end and moves towards the beginning of t
相关文章
相关标签/搜索