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