Hello all I am in need of some help with getting a users input with double[] getUserInput().
I know how to get a users input and storing it, but I do not know how to do it with a array and I have to use double[] getUserInput(). Can someone explain to me how to set this particular code up "double[] getUserInput()", and what it does?
I'm supposed to Store the user provided values into an array of doubles, and return this array to the main method.
ArrayDemohere to see how you can assign values to array elements. You might not be using Java but it's usually the same in other languages. Maybe.