File size: 1,679 Bytes
24fed34 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 | 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.
|