多账户合计校验是否与本次付款相等

This commit is contained in:
季圣华
2021-07-10 22:27:59 +08:00
parent 6f839bf7c7
commit fc03578d23
3 changed files with 24 additions and 7 deletions

View File

@@ -162,6 +162,14 @@ public class StringUtil {
return new ArrayList<String>();
}
public static int getArrSum(String[] strings) {
int sum = 0;
for(int i=0;i<strings.length;i++){
sum=sum+ Integer.parseInt(strings[i]);
}
return sum;
}
/**
* String字符串转成List<Long>数据格式
* String str = "1,2,3,4,5,6" -> List<Long> listLong [1,2,3,4,5,6];