Community driven content discussing all aspects of software development from DevOps to design patterns. Here are the most important concepts developers must know when they size Java arrays and deal ...
Output is 2.5 as expected. Of course for your specific example you'll use a local function and access the [1] index of the array. Rest is still the same.