Java server that reads a string and prints it out on the terminal.