Comment on Turn O(n^2) reverse into O(n)Comments−djulius12yI guess nobody ever got upvoted for using StringBuffer/StringBuilder instead of String concatenation in Java.−m0shen12yIn JDK 7 '+' concatenation actually uses StringBuilder under the hood, so probably nobody cares.I can't tell if you're being facetious.−djulius12yIndeed I was.It's a good safety barrier against hype things.
Comments
I guess nobody ever got upvoted for using StringBuffer/StringBuilder instead of String concatenation in Java.
In JDK 7 '+' concatenation actually uses StringBuilder under the hood, so probably nobody cares.
I can't tell if you're being facetious.
Indeed I was.
It's a good safety barrier against hype things.