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

[ad_1]

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

[ad_2]

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