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