Java Utililty Methods String Insert

List of utility methods to do String Insert

Description

The list of methods to do String Insert are organized into topic(s).

Method

StringinsertStringAtOffset(String srcStr, String inStr, int offset)
insert String At Offset
String result = "";
if (inStr == null) {
    inStr = "\n";
for (int i = 0; i < srcStr.length(); i++) {
    if (i != 0 && i % offset == 0) {
        result += inStr;
    result += srcStr.charAt(i);
return (result);