A recursive algorithm for finding the average can go something like this (I hope this works):
// pseudo-code
double Average(double[] data, int startingLocation)
if startingLocation is...
Type: Posts; User: helloworld922
A recursive algorithm for finding the average can go something like this (I hope this works):
// pseudo-code
double Average(double[] data, int startingLocation)
if startingLocation is...
It's reading it as one string because they aren't separated by spaces. The simple answer is to change the separator type when reading that last line to be separated by a comment also.
Scanner...