insert in stringbuilder code example Example: stringbuilder insert beginning StringBuilder sb = new StringBuilder(); sb.insert(0, "string");