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