public static String getSumOfArrayAndReturnStringValue(String[] array) { double sum = 0; for (String value : array) { sum += Double.parseDouble(value); } return String.valueOf(sum); }