코딩
문자열 한글자씩 비교
yoni-1117
2018. 4. 2. 12:03
int noMasking = 7;
// 일련번호 마스킹 ""값일때의 분기
if ("".equals(decodeStr)){
String maskStudentKey = "";
resultMap.put("studentKeyMask", maskStudentKey);
}
else if (decodeStr.length() > 0){
String pattern = decodeStr.substring(decodeStr.length()-11);
String maskedStr = "";
for (int i = 0; decodeStr.length() > i; i++){
if(i < noMasking){
maskedStr += decodeStr.charAt(i);
}else{
maskedStr += "*";
}
}
}
model.addObject("result", resultMap);
return model;
String a = "abcdefgh" 이렇게 있으면 한글자씩 가져와서 비교하는것 charAt();
var fileDownView = document.location.href.substring(document.location.href.lastIndexOf("/") +1, document.location.href.length);