@@ -0,0 +1,1302 @@
+package ru.matevosyan.server;%0Aimport java.net.*;%0Aimport java.io.*;%0Apublic class BotServer %7B%0A    public static void main(String%5B%5D ar)    %7B%0A        int port = 19999;%0A        try %7B%0A            ServerSocket ss = new ServerSocket(port);%0A            System.out.println(%22Waiting for a client...%22);%0A%0A            Socket socket = ss.accept();%0A            System.out.println(%22Got a client :)!%22);%0A            System.out.println();%0A%0A            try (InputStream sin = socket.getInputStream();%0A            OutputStream sout = socket.getOutputStream();%0A%0A            DataInputStream in = new DataInputStream(sin);%0A            DataOutputStream out = new DataOutputStream(sout)) %7B%0A%0A                String line = null;%0A%0A                while(true) %7B%0A                    line = in.readUTF();%0A                    System.out.println(%22The dumb client just sent me this line : %22 + String.valueOf(line));%0A                    System.out.println(%22I'm sending it back...%22);%0A                    out.writeUTF(line);%0A                    out.flush();%0A                    System.out.println(%22Waiting for the next line...%22);%0A                    System.out.println();%0A                %7D%0A%0A            %7D catch (IOException ioe) %7B%0A                ioe.getMessage();%0A            %7D%0A%0A        %7D catch(Exception x) %7B x.printStackTrace(); %7D%0A    %7D%0A%7D

change BotServer