Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

get sum of int 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 #int #array #return #string
ADD COMMENT
Topic
Name
8+7 =