Hi, i want to clear my string builder to reuse it, i know multiple options:
if we have for example:
StringBuilder token = new StringBuilder("abcdefghijkl");
we can do:
1- token = new StringBuilder("");
2- token.setLength(0);
3- token.delete(0, token.length());
the question is what is the effect of each of 1,2 and 3 on the Capacity of the String Builder and on the Memory?