/**
* 어떤 스트링의 특정 위치에 특정 글자가 있는지 검사해서 boolean 값으로 돌려받는 메서드.
* @param target
* @param begin_col
* @param find
* @return
*/
public static boolean hasMark(String target, int begin_col, String find){
boolean result = false;
try{
int end_col = begin_col + find.length();
if(target == null || target.length() == 0){
return false;
}
if(find == null || find.length() == 0){
return false;
}
if(begin_col < 0){
return false;
}
if(end_col > target.length()){
return false;
}
String slice_of_target = target.substring(begin_col, end_col);
// System.out.println(slice_of_target);
if (slice_of_target.equals(find)){
result = true;
// System.out.println(“트루!!!”);
}
} catch (Exception ex){
Err.print(ex);
}
return result;
}