@@ -0,0 +1,675 @@
+package ua.ikonovalov;%0A%0Aimport java.io.File;%0A%0Apublic class Dir %7B%0A%0A    public static void main(String%5B%5D args) %7B%0A        File file = new File(%22d:%5C%5Cjava%5C%5Cprojects%22);%0A        if (!file.exists()) %7B%0A            throw new IllegalArgumentException(String.format(%22Not exist %25s%22, file.getAbsoluteFile()));%0A        %7D%0A        if (!file.isDirectory()) %7B%0A            throw new IllegalArgumentException(String.format(%22Not directory %25s%22, file.getAbsoluteFile()));%0A        %7D%0A        for (File subfile : file.listFiles()) %7B%0A            if (subfile.isFile()) %7B%0A                System.out.println(%22file name: %22 + subfile.getName() + %22 size: %22 + subfile.length());%0A            %7D%0A        %7D%0A    %7D%0A%7D

task Dir