import java.net.InetSocketAddress; import java.util.Scanner; public class App { public static void main(String[] args) throws Exception { Server server = new Server(6666); Client client = new Client(new InetSocketAddress("localhost", 6666)); while(true) { Scanner scan = new Scanner(System.in); String message = scan.nextLine(); client.sendMessage(message); } } }