8889909192939495969798
LongArrayList list = new LongArrayList(10); list.add(0); list.add(1); list.add(2); assertTrue(list.elementsEqual(new long[] { 0, 1, 2 })); assertFalse(list.elementsEqual(new long[] { 1, 6, 2 })); assertEquals(2, list.lastIndexOf(2)); list.removeByIndex(2);
8990919293949596979899
list.add(0); list.add(1); list.add(2); assertTrue(list.elementsEqual(new long[] { 0, 1, 2 })); assertFalse(list.elementsEqual(new long[] { 1, 6, 2 })); assertEquals(2, list.lastIndexOf(2)); list.removeByIndex(2); assertEquals(2, list.size());