Код: Выделить всё
public class MatriceMap extends AbstractMatrix {
HashMap
valeurs;
public MatriceMap(int nbl, int nbc) {
super(nbl, nbc);
values = new HashMap();
}
@Override
public int getValue(int x, int y) {
Position p=new Position(x,y);
int m=valeurs.get(p);
return m;
}
Подробнее здесь: https://stackoverflow.com/questions/355 ... -with-java