All pastes #397288 Raw Edit

Stuff

public text v1 · immutable
·published 2007-03-16 11:15 UTC
rendered paste body
    public int getPosicion(int color, int id) {
        int j = 0;
        while (j <= 15) {
            if (salida[j] != null) {

                if ((salida[j].getColor() == color) &
                    (salida[j].getIdentificador() == id)) {
                    return -2;
                } else {
                    j++;
                }
            }
        }
        return -1;
}