Skip to content
Advertisement

The property of the object calls removeAll(), why did it delete itself

JavaScript

This code is a test method I wrote,the code in System.out.println(dto.getIdList());,the dto.getIdList() size is 1,and why not 3?why did it delete itself?

Advertisement

Answer

enter image description here

this is way to solve the problom

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement