Vote count:
0
I have an ArrayList I am adding to via the .add() method. I use this .add() method on the ArrayList 3 times in a row. When I debug the code and watch the array grow, the second element doesn't appear, but the first and third do. The second element is literally missing and the array only shows elements 0 and 2.
I don't have the code with me right now as it's at work.
Can you think of why this is happening?
asked 40 secs ago
Elements of ArrayList Missing
Aucun commentaire:
Enregistrer un commentaire