Advertisement
Guest User

Untitled

a guest
Oct 11th, 2013
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.51 KB | None | 0 0
  1. import java.io.File;
  2.  
  3. /**
  4.  * @author: Kale
  5.  * @date: 11/10/13
  6.  */
  7. public class FileListProblem {
  8.     public static void main(final String... args) {
  9.         String username = args[0]; // change this to your username
  10.         File applicationData = new File("C:\\Users\\" + username + "\\Application Data");
  11.  
  12.         System.out.println("Is Directory: " + applicationData.isDirectory());
  13.         System.out.println("Is File: " + applicationData.isFile());
  14.         System.out.println("List: " + applicationData.list());
  15.     }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement