JavaCompilerCore/examples/bajo1_usecases/Matrix1.jav
2013-10-18 13:33:46 +02:00

22 lines
289 B
Java
Executable File

class Matrix extends Vector<Vector<Integer>> {
mul(m){
Vector<Vector<Integer>> ret;
ret = new Matrix();
i;
i = 0;
while(i <size()) {
v1;
v2;
v1 = this.elementAt(i);
v2 = new Vector<Integer>();
j;
j = 0;
ret.addElement(v2);
i++;
}
return ret;
}
}