Here you can find the source of modifyDummyString(String dummyString, int beginTag, int endTag)
private static String modifyDummyString(String dummyString, int beginTag, int endTag)
//package com.java2s; // License as published by the Free Software Foundation; either public class Main { private static String modifyDummyString(String dummyString, int beginTag, int endTag) { String dummyStringInterval = createDummyString('*', endTag - beginTag); return new String(dummyString.substring(0, beginTag) + dummyStringInterval + dummyString.substring(endTag, dummyString.length())); }//from w ww .j a v a2s . c om private static String createDummyString(char fillingChar, int length) { StringBuffer dummyStringBuffer = new StringBuffer(); for (int j = 0; j < length; j++) dummyStringBuffer = dummyStringBuffer.append(fillingChar); return new String(dummyStringBuffer); } }