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