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...
=====================================
On this page of the site you can watch the video online JAVA EXERCISES How to pass array as a function parameter with a duration of hours minute second in good quality, which was uploaded by the user SIMPLECODE 19 February 2016, share the link with friends and acquaintances, this video has already been watched 235 times on youtube and it was liked by 1 viewers. Enjoy your viewing!