I use the word function interchangeably with method in this video (out of habit--methods in Java are called functions in other languages).
This tutorial covers the basics of writing and calling methods. We show examples of methods that return a value, take arguments, and methods that simply do some task that requires neither a return value or arguments passed.
Why use additional methods when you can just put everything inside of main? Methods allow for abstraction, easy code reuse, and allow you to utilize scope.
I'm not completely satisfied with this tutorial, and may redo it in the future. Let me know if any parts are particularly confusing for you so that I can be clearer if do it again.
Sur cette page du site, vous pouvez voir la vidéo en ligne Java Programming: 4 - Methods durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur CodeMonkeyCharlie 21 mai 2011, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 333,826 fois et il a aimé 2.9 mille téléspectateurs. Bon visionnage!