Question: find out the logic and syntax errors in this java code: public double getAverage (double[] nums) { double total = 0; } for (int i=0;
find out the logic and syntax errors in this java code:
![public double getAverage (double[] nums) { double total = 0; } for](https://dsd5zvtm8ll6.cloudfront.net/questions/2024/04/66136956da838_1712551683091.jpg)
public double getAverage (double[] nums) { double total = 0; } for (int i=0; i
Step by Step Solution
There are 3 Steps involved in it
There are several logic and syntax errors in the provided Java code Lets go through them Method signature syntax error 1The parameter declaration for ... View full answer
Get step-by-step solutions from verified subject matter experts
