exercice 4

This commit is contained in:
2025-02-12 12:35:25 +01:00
parent 0170bca3a4
commit 1f77b27748
5 changed files with 149 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
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);
}
}
}