最佳答案
String变量包含一个文件名,C:\Hello\AnotherFolder\The File Name.PDF。我如何只得到文件名 The File Name.PDF作为字符串?
我打算把绳子分开,但这不是最佳解决方案。