| 1 |
| 00:00:00,000 --> 00:00:05,000 |
| Hello, Tim, I believe you did a great job and solve all coding exercises from your homework. |
|
|
| 2 |
| 00:00:05,000 --> 00:00:10,000 |
| But if you don't mind, I'd like to share with you my own solutions to the same tasks. |
|
|
| 3 |
| 00:00:10,000 --> 00:00:13,000 |
| I will leave links to the source code attached to this lesson. |
|
|
| 4 |
| 00:00:14,000 --> 00:00:19,000 |
| Take your time to look through my solutions and left comments in the source code to make you understand |
|
|
| 5 |
| 00:00:19,000 --> 00:00:21,000 |
| the most complicated pieces of code. |
|
|
| 6 |
| 00:00:21,000 --> 00:00:26,000 |
| Also, in some solutions you can find something like this solution with stream API. |
|
|
| 7 |
| 00:00:26,000 --> 00:00:31,000 |
| That is because the first solution, which I wrote for some tasks, was written with the help of stream |
|
|
| 8 |
| 00:00:31,000 --> 00:00:31,000 |
| API. |
|
|
| 9 |
| 00:00:32,000 --> 00:00:37,000 |
| After that, I remembered that we didn't learn stream API with you so far, and I wrote solution with |
|
|
| 10 |
| 00:00:37,000 --> 00:00:39,000 |
| knowledge that you have right now. |
|
|
| 11 |
| 00:00:39,000 --> 00:00:44,000 |
| Indeed, writing code with stream API takes less code to achieve the same goal. |
|
|
| 12 |
| 00:00:45,000 --> 00:00:48,000 |
| Here is the solution without stream API v3. |
|
|
| 13 |
| 00:00:50,000 --> 00:00:52,000 |
| And here is the solution with stream API. |
|
|
| 14 |
| 00:00:53,000 --> 00:00:59,000 |
| Take this as motivation that soon will learn stream API and you will be able to write methods like this. |
|
|
| 15 |
| 00:00:59,000 --> 00:01:04,000 |
| Feel free to ask questions and comment section regarding homework in case something is still unclear. |
|
|
| 16 |
| 00:01:05,000 --> 00:01:08,000 |
| Thanks a lot for your attention and see you in the next lesson. |
|
|
|
|