join array java 8 code example Example: join array java String joinedString = String.join(", ", strArray);