Are you asking how to return a value from a method to the code where the method is called?
What value(s) do you want returned from the method?
Another idea would be to pass a reference to the...
Type: Posts; User: Norm
Are you asking how to return a value from a method to the code where the method is called?
What value(s) do you want returned from the method?
Another idea would be to pass a reference to the...
Where are the points? In this array: arrayPOINTS
A way to add up the contents of an array is to use a loop. Initialize the sum to 0 before the loop, then add each element to the sum in the loop.
Are you getting errors now? Copy the full text of the error messages and post them.
Does the code do what you want now? If not please explain.
Constructors do NOT return the value of a variable.
The omGang() method can return a value.
Variables defined in methods can not be referenced by other code. They are local to the method.
The method could return the value of a variable.