Dagger is a popular library for Java, it makes writing code much easier and more structured. In this article I will describe how can we benefit of using it, show some simple use cases and explore the generated code. As a bonus, I will show an advanced trick that makes Dagger 2 much more flexible.