join string with variable in java code example Example: join strings in java String a = "Hello"; String b = " World"; String c = a+b;