Aug 15, 2017

Avoid using string concatenation.

Use StringBuffer's append() method because the string is an unchangeable object while string concatenation creates a lot of unnecessary objects. A large number of temporary objects will slow down performance.