This question already has an answer here:
- How to add new elements to an array? 10 answers
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