All pastes #475556 Raw Edit

Someone

public java v1 · immutable
·published 2007-05-07 14:59 UTC
rendered paste body
import java.util.ArrayList;public class MonModele {	ArrayList cercles;		public MonModele() {		cercles = new ArrayList ();	}		public Cercle trouverCercle(int x, int y) {		for(int i=0; i<this.cercles.size(); i++) {			if(((Cercle)this.cercles.get(i)).contains(x,y)) {				return (Cercle)this.cercles.get(i);			}		}		return null;	}	public int trouverIndCercle(int x, int y) {		for(int i=0; i<this.cercles.size(); i++) {			if(((Cercle)this.cercles.get(i)).contains(x,y)) {				return i;			}		}		return -1;	}}