Create a URL object. Call the URL object with the openConnection() method. Call the URL object with the write() method.
Create a URL object. Create a URLConnection object using the URL argument in the openConnection() method. Prepare the connection for output using the URLConnection object with the setDoOutput() method. Create an OutputStreamWriter object using the URLConnection object with the getOutputStream() method. Call the OutputStreamWriter object with the write() method.
Create an OutputStreamWriter object. Call the OutputStreamWriter object with the getOutputStream() method. Call the OutputStreamWriter object's write method.
|