Answers for "How to find the sum of an array of string"

0

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);
}
Posted by: Guest on August-12-2021

Code answers related to "How to find the sum of an array of string"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language