I'm using the book HeadFirstJava second edition. Pg. 133 it teaches about ArrayList. I am practicing the example codes it provides but the last example confuses me.
The is supposed to have removed an object from the array and now the ArrayList is an array of one instead of two. When I tried it myself and printed the results it appears to have not worked.
What did I do wrong here or how should it have worked?