public void send(String line){
            try{
                System.out.println(line);
                writer.write(line);
                writer.newLine();
                writer.flush();
            }
            catch(Exception e){
               System.out.println(e.getMessage());
            }
        }