How do you clear the string buffer in Java after a loop so the next iteration uses a clear string buffer?
StringBuffer sb = new SringBuffer(); // do something wiht it sb = new StringBuffer();
i think this code is faster.