How to parse this string in Java?

前端 未结 10 1385
感情败类
感情败类 2020-11-29 05:19

prefix/dir1/dir2/dir3/dir4/..

How to parse the dir1, dir2 values out of the above string in Java?

The prefix here c

10条回答
  •  栀梦
    栀梦 (楼主)
    2020-11-29 05:57

    In this case, why not use new File("prefix/dir1/dir2/dir3/dir4") and go from there?

提交回复
热议问题