@@ -0,0 +1,1694 @@
+package ru.matevosyan.client;%0A%0Aimport java.net.*;%0Aimport java.io.*;%0A%0Apublic class BotClient %7B%0A    public static void main(String%5B%5D ar) %7B%0A        int serverPort = 19999;%0A        String address = %22127.0.0.1%22;%0A%0A        try %7B%0A            InetAddress ipAddress = InetAddress.getByName(address);%0A            System.out.println(%22Any of you heard of a socket with IP address %22 + address + %22 and port %22 + serverPort + %22?%22);%0A            Socket socket = new Socket(ipAddress, serverPort);%0A            System.out.println(%22Yes! I just got hold of the program.%22);%0A%0A            try (%0A            InputStream sin = socket.getInputStream();%0A            OutputStream sout = socket.getOutputStream();%0A%0A            DataInputStream in = new DataInputStream(sin);%0A            DataOutputStream out = new DataOutputStream(sout);%0A%0A            BufferedReader keyboard = new BufferedReader(new InputStreamReader(System.in))) %7B%0A                String line = null;%0A                System.out.println(%22Type in something and press enter. Will send it to the server and tell ya what it thinks.%22);%0A                System.out.println();%0A%0A                while (true) %7B%0A                    line = keyboard.readLine();%0A                    System.out.println(%22Sending this line to the server...%22);%0A                    out.writeUTF(line);%0A                    out.flush();%0A                    line = in.readUTF();%0A                    System.out.println(%22The server was very polite. It sent me this : %22 + line);%0A                    System.out.println();%0A                %7D%0A            %7D catch (IOException ioe) %7B%0A            ioe.getMessage();%0A        %7D%0A        %7D catch (Exception x) %7B%0A            x.printStackTrace();%0A        %7D%0A    %7D%0A%7D

add BotClient