Ok, so I understood all of these tasks, and was able to complete them all quite easily. Now I am worried. Usually when this happens, the next set of tasks will be impossible for me to complete without help, and ritualistic suicide seems the only recourse.
Oh, CodeGym, how you like to lull us into a false sense of security.
The Big Ben exercise is quite stupid because it clearly says in the conditions that hours cannot be greater than 23 and minutes and seconds cannot be greater than 59 yet in the solution provided if user introduces 25, or 66 or 93 they are displayed as is.
And I spent like a fool over an hour trying to find an algorithm that doesn't allow this when the solution doesn't even take this into consideration...
Come on. CodeGym! Get your s**t together !
The Airport example is awesome. There are actually lots and lots of scenarios in which you need multithreading in real world airport and airtraffic control center systems. Pretty neat. :-)
Happy to read this comment! At least i feel i'm not the only one having this problem , hehe =)
Gotta read the code 10 times to see where everything goes and what it does, lol. Time consuming!
Darko JakimovskiLevel 18, Kriva Palanka, Macedonia, The Former Yugoslav Republic of
20 May 2019
I turd that notion guys, but that has helped me to understand things much better. And each time there is a similar task it gets easier.
sheesh, my head spins. Will now take a break and continue on Monday, my brain needs to step away and have a break for a day to assimilate/interpret the information...
Using the debugger is very helpful in that matter, you can follow the program execution and see how variables, arrays and everythings are used and filled through the execution.
All the programs are doing really is putting objects in a list, running through the list and executing a method on each method. This difference here is each object's methods are running on a thread and your have to use "join" and "sleep" to control the behavoir of the called method.
Haha u r right but we need this , you can think this like that when you looking to a image for paint it , first time of painter is start with copy of what he see.
Search for debugger in codegym! -- it's a good section about intelliJ debugging tooling
OR HERE >>> https://codegym.cc/quests/lectures/questcollections.level09.lecture03
GO TO FULL VERSION