p;is is suitable here to determine \"function\" and add \" \" before it?
} else {
lastWord = String.valueOf(thisChar);
}
}
lastChar = thisChar;
thisChar = nextChar;
if(thisChar != -1) {
nextChar = fr.read();
}
}
// close the files
fw.close();
fr.close();
}
/**
* Find all JS files in the specified directory.
*
* @param directory The directory in which the files to be listed. [Page]
* @return List<String> The JS file list.
*/
private static List<String> getJsFileList(String directory) {
List<String> jsFileList = new ArrayList<String>();
list(directory, jsFileList);
return jsFileList;
}
/**
* List all the JS files in the specified directory recursively.
*
* @param path The path to be recursively searched for JS files.
* @param result The path and file list
*/