import java.io.File; import java.util.Arrays; import java.util.Scanner; public class Main_yukicoder3010 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); File bin = new File(File.separator + "bin"); // File bin = new File("C:" + File.separator + "Temp"); String[] list = bin.list(); Arrays.sort(list); for (String e : list) { if (e.charAt(0) != '.') { System.out.println(e); } } sc.close(); } }