java how to write list without brackets code example Example: python list to string without brackets print(', '.join(names))