StringBuilder java pop back

Java
sb.setLength(sb.length() - 1);
Source

Also in Java: