Vector contents;
において明らかに要素は入っているのに
contents.removeElementAt(0);
を実行すると
java.lang.ArrayIndexOutOfBoundsException: 28 >= 28
と出てしまいます。
考えられる間違いとしては何があるでしょうか?