JAVA EXERCISES How to pass array as a function parameter

Publié le: 19 février 2016
sur la chaîne: SIMPLECODE
235
1

Another java exercise I`ve done recently. The idea is kinda same as was in my other Python version - to pass functions as parameters. So I don`t really know how to pass functions list in java for now, but in this video we`ll pass an array of 0 and 1. If we encounter 0 - we apply increment function, then if we see 1 - apply square function. And function will return the result. For example if we pass an array [0, 1] and number 4, we`ll get this computation: 4 + 1 = 5; 5 * 5 = 25. To determine what function to use we`ll utilize a Switch statement. Hope this will be helpful to someone.
=====================================
SUBSCRIBE FOR MORE:
http://www.youtube.com/subscription_c...
=====================================


Sur cette page du site, vous pouvez voir la vidéo en ligne JAVA EXERCISES How to pass array as a function parameter durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur SIMPLECODE 19 février 2016, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 235 fois et il a aimé 1 téléspectateurs. Bon visionnage!