@@ -0,0 +1,580 @@
+import java.io.IOException;%0Aimport java.io.PrintWriter;%0Aimport java.net.Socket;%0Aimport java.net.UnknownHostException;%0A%0Apublic class Sockets %7B%0A%09static Socket s;%0A%09static PrintWriter pw;%0A%0A%09public static void main(String%5B%5D args) %7B%0A%09%09try %7B%0A%09%09%09s = new Socket(%22tutorialspi%22,8000);%0A%09%09%09pw = new PrintWriter(s.getOutputStream());%0A%09%09%09pw.write(%22Hello World%22);%0A%09%09%09pw.flush();%0A%09%09%09pw.close();%0A%09%09%09s.close();%0A%09%09%7D catch (UnknownHostException e) %7B%0A%09%09%09System.out.println(%22Fail%22);%0A%09%09%09e.printStackTrace();%0A%09%09%7D catch (IOException e) %7B%0A%09%09%09System.out.println(%22Fail%22);%0A%09%09%09e.printStackTrace();%0A%09%09%7D%0A%09%09%0A%09%7D%0A%0A%7D%0A

Create Sockets.java