Question: It is possible to use the File class to list the contents of the current working directory.
By: Ash Emailed: 1728 times Printed: 2331 times
Answer:True. The code below shows how this is done.
1. File f = new File(".");
2. String contents = f.list();
Be the first one to add a comment
Most Viewed Articles (in Certification )
Most Emailed Articles (in Certification)