I am trying to concatenate strings in Java. Why isn\'t this working?
public class StackOverflowTest { public static void main(String args[]) {
First method: You could use "+" sign for concatenating strings, but this always happens in print. Another way: The String class includes a method for concatenating two strings: string1.concat(string2);