public static List<File> scanFiles(File path){
  ArrayList<File> result=new ArrayList<File>();
  scanFiles(path,result);
  return result;
}

public static List < File > scanFiles ( File path ) { ArrayList < File > result = new ArrayList < File > ( ) ; scanFiles ( path , result ) ; return result ; }
recursively gets all files with a given extension contained in a directory
