File megBag=new File("src/resources/meg_data");
fileList=megBag.listFiles(fileFilter);

    private static FileFilter fileFilter=new FileFilter(){
        public boolean accept(File pathname) {
            String tmp=pathname.getName().toLowerCase();
            if(tmp.endsWith(".ini") || tmp.endsWith(".INI")){
                return true;
            }
            return false;
        }
    };

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-09
  • 2021-12-05
  • 2022-12-23
  • 2022-12-23
  • 2021-05-02
猜你喜欢
  • 2021-08-07
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案