public class My2DListImpl2 implements My2DList { int[] data; int nx, ny; public My2DListImpl2(int sx,int sy) { data = new int[sx*sy]; nx = sx; ny = sy; } public int get(int i1,int i2) { return data[i1*ny + i2]; } public int sizeX() { return nx; } public int sizeY() { return ny; } public void set(int i1,int i2,int value) { data[i1*ny + i2] = value; } public static void main(String[] args) { My2DList m = new My2DListImpl2(3,4); m.set(0,2,5); assert m.get(0,2) == 5; m.set(2,1,3); assert m.get(2,1) == 3; for(int j=0;j