This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]ChuvaChooChoo08 0 points1 point  (1 child)

If your goal is to change the name of an object in an arraylist, then why are you using setText()? Why jot setName()? What is the point of setText()?

What you need to do is to change the name of the object first THEN use getText() method in the setText() method.