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