// Meme chose que PingPong1 avec la syntaxe "Runnable" class PingPong1b implements Runnable { private String texte; int temps; public PingPong1b(String texte, int temps) { this.texte = texte; this.temps = temps; } public void run() { for (int i = 0; i < 10; i++) { System.out.print(texte); try { Thread.sleep(temps); } catch (InterruptedException e) { } } } public static void main(String args[]) { new Thread(new PingPong1b("Ping", 200)).start(); new Thread(new PingPong1b("Pong", 100)).start(); } }