Skip to content

Latest commit

 

History

History
8 lines (6 loc) · 626 Bytes

README.md

File metadata and controls

8 lines (6 loc) · 626 Bytes

Sum of elements in Arrays using Recursaive Methods

A recursive method to sum the values in an array of integers. Create a file ArraySum.java and add the recursive method public int sumOfArray (Integer[ ] a,int index). Note that ‘a’ is an array of type Integer that is specified in the driver file, and ‘index’ is an integer that shows which number in the array to sum next. Use the driver class ArraySumDriver.java to populate your array and demonstrate that your method works.

Output

RecursiveOutput