"हाय, अमिगो! मी तुमच्यासाठी काही मनोरंजक कार्ये घेऊन आलो आहे."
"ते फक्त IntelliJ IDEA मध्ये पूर्ण केले जाऊ शकतात. या मनोरंजक परिस्थितींवर एक नजर टाका..."
28
टास्क
Java Collections, पातळी 1, धडा 2
लॉक केलेले
Iterating through a file tree
1. The main method is passed two arguments as inputs.
The first argument is path, which is the path to the directory; the second is resultFileAbsolutePath, which is the name (full path) of an existing file that will store the result.
14
टास्क
Java Collections, पातळी 1, धडा 2
लॉक केलेले
Find all the files
Implement the getFileTree method, which must create a list of all of the files, including nested files.
Don't use recursion.
Return a list of the paths to all the found files. Don't return paths to directories.
The path must be absolute.
28
टास्क
Java Collections, पातळी 1, धडा 2
लॉक केलेले
Advanced file search
Let's implement a configurable file search within a directory. Look over the java.nio.file.FileVisitor interface and its superclass's implementation java.nio.file.SimpleFileVisitor.
0
टिप्पण्या
लोकप्रिय
नवीन
जुने
टिप्पणी करण्यासाठी तुम्ही साईन इन केलेले असणे आवश्यक आहे