Daily tip #3
For String concatenation, use “+” only for simple cases. In a loop, prefer StringBuilder. If you need a thread-safe concatenation, then you need StringBuffer.
Take a look in repo-tip-3 to see a real example.
For String concatenation, use “+” only for simple cases. In a loop, prefer StringBuilder. If you need a thread-safe concatenation, then you need StringBuffer.
Take a look in repo-tip-3 to see a real example.