在Java中修剪后缀的最有效方法是什么,如下所示:
title part1.txt title part2.html => title part1 title part2
java string process
java ×1
process ×1
string ×1