private static ArrayList<String> readAllFiles(File[] files) throws FileNotFoundException {
  ArrayList<String> strings=new ArrayList<String>();
  for (  File file : files) {
    strings.add(readString(file));
  }
  return strings;
}

private static ArrayList < String > readAllFiles ( File [ ] files ) throws FileNotFoundException { ArrayList < String > strings = new ArrayList < String > ( ) ; for ( File file : files ) { strings . add ( readString ( file ) ) ; } return strings ; }
read all the files in teh directory , return them as an array of strings .
