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