growup

File file=new File("d:/a/aa/test.1.txt");
  System.out.println(file.getName().replaceAll("[.][^.]+$", ""));

分类:

技术点:

相关文章: