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