Java中 startsWith() 方法和endsWith()方法判断字符串的前缀和后缀
程序员文章站
2022-07-16 14:16:22
...
if(gatewayType.startsWith("9885")){
smsWoFee = querySmsWoFee(sid, cid,gatewayType,s_longno, orderDateStr, cancelDateStr, isOn);
}else if(gatewayType.startsWith("9789")){
smsWoFee = querySmsWoFee(sid, cid,gatewayType,s_longno, orderDateStr, cancelDateStr, isOn);
}else{
smsWoFee = null;
}
上一篇: Java的String类中的startsWith方法和endsWith方法
下一篇: Redux