Possible Duplicate:
How to get file name without the extension?
I have a list of xml files and I'm trying to return just the file name without the extension. For example, if I have:
String filename = "hello.xml";
How would I return just "hello" with the fact the file names vary?