//PROGRAM 10-14 import java.io.File; class DemoListDirektori { public static void main(String[] args) { String dir = "d:/javaCode"; File f = new File(dir); String[] daftar = f.list(); java.util.Arrays.sort(daftar); System.out.println("File dan direktori dalam D:\\javaCode"); System.out.println(); for (int i=0; i"); } else { System.out.println(daftar[i]); } } } }