What should the code be like (intellij IDEA)?
Hello, I'm stuck on this task. Can someone tell me what the code should look like?
Thanks in advance 🙂
Hello, I'm stuck on this task. Can someone tell me what the code should look like?
Thanks in advance 🙂
Your method has the following signature:
You should add up all double values obtained via "theArray." The "max" parameter is currently ignored.
Remember to check whether the input is valid (ie whether "theArray" is null and whether its respective components are null).