What’s the most efficient way to trim the suffix in Java, like this:
title part1.txt
title part2.html
=>
title part1
title part2
What’s the most efficient way to trim the suffix in Java, like this:
title part1.txt
title part2.html
=>
title part1
title part2