// Generate the selective list, with a one-use File object.
String[] dir = new java.io.File(".").list(new OnlyJava());
java.util.Arrays.sort(dir); // Sort it (Data Structuring chapter))
for (int i=0; i<dir.length; i++)
System.out.println(dir[i]); // Print the list