Answer (Choose 1 answer)
How do you use the File class to list the contents of a directory?
A. String contents = myFile.list();
B. File contents = myFile.list();
C. StringBuilder contents = myFile.list();
D. The File class does not provide a way to list the contents of a directory.
2