join strings java code example
Example 1: java concatenate strings
public class Concat {
String cat(String a, String b) {
a += b;
return a;
}
}
Example 2: join strings in java
String a = "Hello";
String b = " World";
String c = a+b;