[Solved] Java- how to temporarily store data in array-list


In your code you add values to this.list and check obj.getArrlstValues(), when this != obj.

So you never update the same list you look at!

You can use this.getArrlstValues() (or just getArrlstValues()) and remove this line:

Test obj=new Test()

5

solved Java- how to temporarily store data in array-list