Please post the full text of the error message that shows where the error occurs.
What statement causes the exception?
method whose result type is void?
The posted method is defined with return type of void on line 1. It can not return a value on line 12.
Change its return type to be the same type as total if you want to return a value.
BTW total won't be an accumulation of values, it will hold the last value received in line 7
NormR1
Posting Sage
7,742 posts since Jun 2010
Reputation Points: 1,158
Solved Threads: 793
Skill Endorsements: 16
We cross posted. See my last post.
NormR1
Posting Sage
7,742 posts since Jun 2010
Reputation Points: 1,158
Solved Threads: 793
Skill Endorsements: 16
Question Answered as of 6 Months Ago by
NormR1