Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.io.File;
- /**
- * @author: Kale
- * @date: 11/10/13
- */
- public class FileListProblem {
- public static void main(final String... args) {
- String username = args[0]; // change this to your username
- File applicationData = new File("C:\\Users\\" + username + "\\Application Data");
- System.out.println("Is Directory: " + applicationData.isDirectory());
- System.out.println("Is File: " + applicationData.isFile());
- System.out.println("List: " + applicationData.list());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement