@@ -0,0 +1,1088 @@
+package ru.job4j.monitore_synchronizy;%0A%0Aimport java.io.File;%0Aimport java.io.IOException;%0Aimport java.nio.file.*;%0Aimport java.nio.file.attribute.BasicFileAttributes;%0Aimport java.util.ArrayList;%0Aimport java.util.Collections;%0A%0A/**%0A * Created by Ivanov_ab on 12.07.2017.%0A */%0Apublic class TextSearch %7B%0A    ArrayList%3CPath%3E files = new ArrayList%3C%3E();%0A%0A    class MyVisitor extends SimpleFileVisitor%3CPath%3E %7B%0A        @Override%0A        public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException %7B%0A            files.add(file);%0A            System.out.println(file.getFileName());%0A            return FileVisitResult.CONTINUE;%0A        %7D%0A    %7D%0A%0A    public static void main(String%5B%5D args) throws IOException %7B%0A        TextSearch search = new TextSearch();%0A        MyVisitor visitor = search.new MyVisitor();%0A        Path path = Paths.get(%22C:%5C%5CUsers%5C%5CIvanov_ab%5C%5CDocuments%5C%5C%D0%9B%D0%B8%D1%82%D0%B5%D1%80%D0%B0%D1%82%D1%83%D1%80%D0%B0%22);%0A        Files.walkFileTree(path, visitor);%0A        Collections.sort(search.files);%0A        for (Path p : search.files) %7B%0A            System.out.println(p.getFileName());%0A        %7D%0A    %7D%0A%7D%0A

Add TextSearch.