Hapus char pada indeks terakhir dalam buffer string atau panjang reset

sb.setLength(sb.length() - 1);
Amused Angelfish