java concatenate array of strings with separator code example Example: join array java String joinedString = String.join(", ", strArray);