Java Integer Mod modifyDummyString(String dummyString, int beginTag, int endTag)

Here you can find the source of modifyDummyString(String dummyString, int beginTag, int endTag)

Description

modify Dummy String

License

Open Source License

Declaration

private static String modifyDummyString(String dummyString, int beginTag, int endTag) 

Method Source Code

//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);
    }
}

Related

  1. modCeil(int x, int mod)
  2. mode(final StringBuilder buffer, final int mode)
  3. ModEuclidean(int D, int d)
  4. modifyAlpha(int color, int alpha)
  5. modifyBase32AtIndex(final String s, final int index)
  6. modifyPublicPortCheckRange(String modifiedVal, int dashCnt)
  7. modifyString(char firstCharacter, String srcString, int indexOfSubstring)
  8. modInverse(int a, int n)
  9. modInverse(int n, int mod)