Java Hapus ekstensi file dari nama file

fileNameWithOutExt = "test.xml".replaceFirst("[.][^.]+$", "");
Delightful Dogfish