How do you clear the string buffer in Java after a loop so the next iteration uses a clear string buffer?
public void clear(StringBuilder s) { s.setLength(0); }
Usage:
StringBuilder v = new StringBuilder(); clear(v);
for readability, I think this is the best solution.