Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

get sum of array and return string

public static String getSumOfArrayAndReturnStringValue(String[] array) {
    double sum = 0;
    for (String value : array) {
    sum += Double.parseDouble(value);
  }
  return String.valueOf(sum);
}
 
PREVIOUS NEXT
Tagged: #sum #array #return #string
ADD COMMENT
Topic
Name
7+7 =