package linda.test; import linda.server.LindaClient; import linda.Tuple; public class ClientTest1 { public static void main(String[] args) { LindaClient lc = new LindaClient(args[0]); Tuple t1 = new Tuple(1, "a"); System.out.print("Tuple " + t1 + " envoyé"); lc.write(t1); System.out.print("Tuple " + t1 + " écrit"); try { Thread.sleep(3000); } catch (InterruptedException e) { e.printStackTrace(); } Tuple template = new Tuple(Integer.class, String.class); System.out.print("Lecture " + template + " envoyé"); Tuple t2 = lc.read(template); System.out.print("Tuple " + t2 + " lu"); } }