13.07.2015 Views

Java – programowanie sieciowe - Koszalin

Java – programowanie sieciowe - Koszalin

Java – programowanie sieciowe - Koszalin

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Zapis do strumienia wyjściowego.import java.io.*; import java.net.*;public class Reverse {public static void main(String[ ] args) throws Exception {...URL url = new URL(args[0]); // (1)URLConnection connection = url.openConnection(); //(2)connection.setDoOutput(true); //(3)OutputStreamWriter out = new OutputStreamWriter(connection.getOutputStream()); //(4)out.write("string=" + stringToReverse); //(5)out.close();...}}

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!