"ஹாய், அமிகோ!" நான் உங்களுக்காக இரண்டு சுவாரஸ்யமான பணிகளைக் கொண்டு வந்துள்ளேன்."
"இன்டெல்லிஜே ஐடியாவில் மட்டுமே அவற்றை முடிக்க முடியும். இந்த சுவாரஸ்யமான நிலைமைகளைப் பாருங்கள்..."
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.