Just to be clear, I'm not looking for the MIME type.
Let's say I have the following input: `/path/to/file/foo.txt`
I'd like a way to break this input up, specifically into `.txt` for the extension. Is there any built in way to do this in Java? I would like to avoid writing my own parser.
以上就是How do I get the file extension of a file in Java?的详细内容,更多请关注web前端其它相关文章!