vendredi 31 juillet 2015

Add items to an empty array [duplicate]

This question already has an answer here:

I have learned that to declare an empty array you do:

int myArray = new int[0]

But how do I add items to this array. For example, how would I add the integers 31, 35, 37?

Aucun commentaire:

Enregistrer un commentaire