1
I created a ArrayList(objetoQueCriei)
, and would like while running the program to change the value of the attributes of these objects in the array. Have some command to do this?
I tried to use the command set
, but would have to replace the object of that index, and not replace a value of an object attribute.
Try
listaDeObjetos.get(indice).setAtributoQualquer("Valor Novo");
– gato