Question : remove char at last index in String Buffer or reset length
Answered by : amused-angelfish-t2u0cfjorz8d
sb.setLength(sb.length() - 1);
Source : https://stackoverflow.com/questions/3395286/remove-last-character-of-a-stringbuilder | Last Update : Mon, 22 Jun 20