CodeGym /Java Course /Java Collections /Tasks | Level 7 | Lesson 8

Tasks | Level 7 | Lesson 8

Java Collections
Level 7 , Lesson 8
Available

"Amigo, I'm now only going to give you one task — but it's a very cool task! You've never done one like this before. It represents the pinnacle of skill! Now where is it... uh ... hmm... Anyway, go and do the tasks that you haven't done yet. Rest up and come again. I'll find it for you."

18
Task
Java Collections, level 7, lesson 8
Locked
Security Proxy
You must create a SecurityProxyConnector class in the connectors package. It will perform a security check before connecting. If the check fails, then the connection must not be established. For the client (in this case, the Solution class), using SecurityProxyConnector should be no different than
18
Task
Java Collections, level 7, lesson 8
Locked
Decorator
Create a RedShapeDecorator class in the decorators package. It must extend the functionality of Shape objects without changing their structure. I've already created an abstract ShapeDecorator class, so: 1) Make the RedShapeDecorator class inherit the ShapeDecorator class. 2) Implement a private se
9
Task
Java Collections, level 7, lesson 8
Locked
Facade
The Facade pattern lets you hide a system's complexity by consolidating every possible external call into a single object, and then delegating them to the appropriate objects within the system. In this case, separate CPU, Memory, and HardDrive objects are created in the Solution class and methods
9
Task
Java Collections, level 7, lesson 8
Locked
Template method
The Football, Basketball, and Tennis classes describe three popular games. Ask your favorite search engine about the Template Method pattern and make it so that the code in the Solution class's main method makes sense. P.S. The Game class must be abstract.
18
Task
Java Collections, level 7, lesson 8
Locked
Chain of Responsibility
Amigo, we have a problem! During a visit to Planet #IND893, we dared to outsource the automatic assignment of incoming tasks for crew members. It's hard to believe, but now it seems that the first mate has to do everything! We need to fix the program quickly, because cabin boys can scrub the deck,
18
Task
Java Collections, level 7, lesson 8
Locked
Ancient Rome
Hi, Amigo! I recently developed an interest in your planet's history and became interested in the Ancient Roman period. It would have been interesting to live then! Nonstop entertainment and wine! Or slavery if your starting location wasn't lucky... Basically, I need a romanToInteger method that w
Comments (2)
TO VIEW ALL COMMENTS OR TO MAKE A COMMENT,
GO TO FULL VERSION
Justin Smith Level 41, Greenfield, USA, United States
11 February 2023
Some of these tasks are extremely easy and seem to just embody one of the four main principles of Java. For example, Facade is just an encapsulation exercise, and Template Method is just some basic inheritance stuff.
Andrei Level 41
26 July 2021
EX.ER.CIS.ES ! EX.ER.CIS.ES ! EX.ER.CIS.ES ! 😁🤝