1. Building your own methods
Now it's time to put everything together!
2. Combine everything!
We've seen how to create our own methods, how to pass in parameters, and how to return values. We've also worked with Strings, loops, and control flow. Now, in this chapter, we'll apply those concepts to build a complete workflow!
3. Check if number is even
Let's look at an example. Here, we have a custom method that checks if a given number is even by checking the remainder after dividing by two. It returns `true` if the given number is even and `false` otherwise.
4. Iterate through given String and print each letter
This method iterates through a given `String` and prints out each letter.
There's no new syntax here - just practice and reinforcement. The goal is to get more comfortable structuring your code using methods, and breaking down problems into small, reusable steps.
5. Let's practice!
Let's dive in and write some custom methods of our own!