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