java join an array into a string code example Example: join array java String joinedString = String.join(", ", strArray);