"हाय, अमीगो!" मैं आपके लिए कुछ दिलचस्प काम लेकर आया हूं।"
"उन्हें केवल IntelliJ IDEA में ही पूरा किया जा सकता है। इन दिलचस्प स्थितियों पर एक नज़र डालें..."
14
टास्क
Java Collections, स्तर 1, सबक 8
लॉक
Null object pattern
Read about the null-object pattern on Wikipedia.
Use Files to correctly initialize the fileData field with a ConcreteFileData object in the Solution class's constructor.
If you have any problems reading the file in the pathToFile path, then initialize the field with a NullFileData object.
7
टास्क
Java Collections, स्तर 1, सबक 8
लॉक
Path 101
Read about all of the Path class's methods.
Find one that creates a relative path between the current path and a passed path.
Implement the getDiffBetweenTwoPaths method. It must return a relative path.
The main method is not tested.