Why StringBuilder is used in Java? code example Example: stringbuilder in java 8 public StringBuilder reverse()