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