Class GetAdditionFromList
java.lang.Object
topics.introduction.GetAdditionFromList
To get the addition of a list of numbers
- Author:
- vicegd
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintsum(int[] list) To sum up the total value of the numbers contained in an array
-
Constructor Details
-
GetAdditionFromList
public GetAdditionFromList()
-
-
Method Details
-
sum
public int sum(int[] list) To sum up the total value of the numbers contained in an array- Parameters:
list- Array with numbers- Returns:
- The sum of all the numbers
-