Untitled

mail@pastecode.io avatar
unknown
java
2 years ago
725 B
7
Indexable
Never

import java.util.logging.Level;
import java.util.logging.Logger;

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
/**
 *
 * @author kevinpg
 */
public class Main {

    public static void main(String[] args) {
        Arbitro arbitro = new Arbitro(3);
        Jugador j1 = new Jugador(1, arbitro);
        Jugador j2 = new Jugador(2, arbitro);
        Jugador j3 = new Jugador(3, arbitro);

        j1.start();
        j2.start();
        j3.start();

        try {
            j1.join();
            j2.join();
            j3.join();
        } catch (InterruptedException ex) {}
    }
}