Concatenation in Java

I wanted to know which took less time when concatenating a string in Java: So I wrote some code to time the difference (see below). I tried running with line 22 and then line 23. I started a timer, called msg a million times, stopped the timer and recorded how long it took. I did… Continue reading Concatenation in Java

Published
Categorized as Java Tagged