/Users/lyon/j4p/src/futils/ListFiles.java

1    package futils; 
2     
3    import java.io.File; 
4     
5    public class ListFiles { 
6        public static void main(String args[]) { 
7            String list[] = new File(".").list(); 
8            for (int i = 0; i < list.length; i++) 
9                System.out.println(list[i]); 
10       } 
11   }