Answers for "how to remove the the last item of a string builder"

2

how to delete last char from stringbuilder

if(sb.length() > 0){
    sb.deleteCharAt(sb.length() - 1);
}
Posted by: Guest on February-27-2021

Code answers related to "how to remove the the last item of a string builder"

Browse Popular Code Answers by Language