File file=new File("d:/a/aa/test.1.txt");
System.out.println(file.getName().replaceAll("[.][^.]+$", ""));
转载于:https://www.cnblogs.com/growup/archive/2010/05/03/1971546.html
File file=new File("d:/a/aa/test.1.txt");
System.out.println(file.getName().replaceAll("[.][^.]+$", ""));
转载于:https://www.cnblogs.com/growup/archive/2010/05/03/1971546.html