I am trying to concatenate strings in Java. Why isn\'t this working?
public class StackOverflowTest { public static void main(String args[]) {
For better performance use str1.concat(str2) where str1 and str2 are string variables.
str1.concat(str2)
str1
str2