for (int j = 0; j < LEFT_MARGIN + 4; j++, sb.append(' '))
for (int j = 0; j < LEFT_MARGIN + 3; j++, sb.append(' '))
    private void printList(File[] list, PrintStream out) {        if (list != null) {            Arrays.sort(list, new Comparator<File>() {                public int compare(File f1, File f2) {                    boolean b1 = f1.isDirectory();                    boolean b2 = f2.isDirectory();                    return b1 == b2 ? f1.getName().compareTo(f2.getName()) :                            b1 & !b2 ? -1 : 1;                }            });            StringBuilder sb = new StringBuilder();            Date lastModified = new Date();            for (int i = 0; i < list.length; i++) {                File f = list[i];                if (f.exists()) {                    sb.setLength(0);                    lastModified.setTime(f.lastModified());                    if (f.isFile()) {                        String ln = String.valueOf(f.length());                        int cnt = LEFT_MARGIN - ln.length();                        for (int j = 0; j < cnt; j++, sb.append(' '))                            ;                        sb.append(ln);                        sb.append("B   ");                        sb.append(df.format(lastModified));                        sb.append("   ");                        sb.append(f.getName());                    } else {                        for (int j = 0; j < LEFT_MARGIN + 4; j++, sb.append(' '))                            ;                        sb.append(df.format(lastModified));                        sb.append("   [");                        sb.append(f.getName());                        sb.append(']');                    }                    out.println(sb.toString());                }            }            out.println();        }    }