I am trying to concatenate strings in Java. Why isn\'t this working?
public class StackOverflowTest { public static void main(String args[]) {
You can concatenate Strings using the + operator:
+
String a="hello "; String b="world."; System.out.println(a+b);
Output:
hello world.
That's it