"హాయ్, అమిగో! నేను మీ కోసం కొన్ని ఆసక్తికరమైన టాస్క్లతో వచ్చాను."
"అవి IntelliJ IDEAలో మాత్రమే పూర్తి చేయబడతాయి. ఈ ఆసక్తికరమైన పరిస్థితులను పరిశీలించండి..."
28
టాస్క్
Java Collections, స్థాయి, పాఠం
లాక్ చేయబడింది
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, స్థాయి, పాఠం
లాక్ చేయబడింది
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, స్థాయి, పాఠం
లాక్ చేయబడింది
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
వ్యాఖ్యలు
జనాదరణ పొందినది
కొత్తది
పాతది
వ్యాఖ్యానించడానికి మీరు తప్పనిసరిగా సైన్ ఇన్ చేసి ఉండాలి