CodeGym /Courses /Java Collections /Tasks | Level 1 | Lesson 8

Tasks | Level 1 | Lesson 8

Java Collections
Level 1, Lesson 8
Available

"Hi, Amigo!" I came up with a couple of interesting tasks for you."

"They can only be completed in IntelliJ IDEA. Take a look at these interesting conditions…"

14
Task
Java Collections, level 1, lesson 8
Locked
Null object pattern
Null object pattern
7
Task
Java Collections, level 1, lesson 8
Locked
Path 101
Path 101
Comments (6)
TO VIEW ALL COMMENTS OR TO MAKE A COMMENT,
GO TO FULL VERSION
Evgeniia Shabaeva Level 42, Budapest, Hungary
19 May 2025
For those interested, the idea behind the null object pattern is this. When I'm writing normal code with normal (non-null) objects, I should create something like a sibling class of my class, which will inherit the same interface as my class does and provide empty implementations of the methods that my class implements normally. If someone got a better understanding, please share:).
matemate123 Level 50, Kraków, Poland
22 August 2023
I think that course could be so much better if each level starts with many simple tasks like that, teaching simple concepts and on the end each level tasks like that from previous page.
Justin Smith Level 41, Greenfield, USA, United States
10 August 2022
Both of these were quite a bit easier than some of the other recent tasks. Kind of a relief!
Jordan Zebouni Level 25, Jacksonville, United States
24 January 2021
I like task "path 101" because it is teaching you to look through the documentation of the Path class in order to find a method that fits.
Andrei Level 1
16 June 2021
Yes, it's a nice task!
Wei Cui Level 39, Newark, United States
12 March 2020
task path 101 : key is read path.relativize method