Rewrite the following method using a while loop using an Iterator instead of the For each loop, files is an ArrayList storing String objects, also include ANY addition that you would need to have anywhere in the class.
public void listAllFiles()
{
for(String filename : files) {
System.out.println(filename);
}
}