MCPcopy Create free account
hub / github.com/DiUS/java-faker / sum

Method sum

src/main/java/com/github/javafaker/Finance.java:73–81  ·  view source on GitHub ↗
(String[] string)

Source from the content-addressed store, hash-verified

71 }
72
73 private static int sum(String[] string) {
74 int sum = 0;
75 for (String s : string) {
76 if (!s.isEmpty()) {
77 sum += Integer.valueOf(s);
78 }
79 }
80 return sum;
81 }
82
83 private static String calculateIbanChecksum(String countryCode, String basicBankAccountNumber) {
84 String basis = basicBankAccountNumber + countryCode + "00";

Callers 1

creditCardMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected