2005-01-10 | Paul Boddie | file changeset files shortlog | Moved the lang module contents into the lang package. Fixed various java.lang and java.io circular imports by introducing a java.lang._object module. Corrected various base classes (object -> java.lang.Object, Exception -> java.lang.Exception) and fixed raising of exceptions in certain cases. |
paul@67 | 1 | public class ArrayTest { |
paul@67 | 2 | public int[] array; |
paul@67 | 3 | |
paul@67 | 4 | public ArrayTest(int size) { |
paul@67 | 5 | array = new int[size]; |
paul@67 | 6 | } |
paul@67 | 7 | |
paul@67 | 8 | public int get(int index) { |
paul@67 | 9 | return array[index]; |
paul@67 | 10 | } |
paul@67 | 11 | } |