This was a mock question I came across...
while trying to compile this code..I expected the element at position 1 in the ArrayList to be removed and the output would be 2...I checked the ArrayList
doc and it says "The method removes the element at the specified position in this list."...so how come the output is 1...
I tried adding more elements and went on removing from position 1 and the code is behaving strangely...
I compiled this...
and the output is 1 4 ....please help me out here..
[ December 20, 2007: Message edited by: sugantha Jeevankumar ]