2004-12-09 | Paul Boddie | file changeset files shortlog | Made i2c a null operation since char values are treated like int values in Java. Changed the special notation for Java-callable methods so that methods may be more easily written in Python. Commented out various trace statements. |
paul@67 | 1 | public class MultiArrayTest { |
paul@67 | 2 | public int[][] multiArray; |
paul@67 | 3 | |
paul@67 | 4 | public MultiArrayTest(int[] multiSizes) { |
paul@67 | 5 | multiArray = new int[multiSizes[0]][multiSizes[1]]; |
paul@67 | 6 | } |
paul@67 | 7 | |
paul@67 | 8 | public int get(int index1, int index2) { |
paul@67 | 9 | return multiArray[index1][index2]; |
paul@67 | 10 | } |
paul@67 | 11 | } |