This content has been marked as final. Show 5 replies
Prem wrote:Actually, its an ArrayList where each entry is another ArrayList isn't it? So what are you confused about?
I want to find duplicate records from following list how can I do that
columns are Id1,Id2,Id3,Name,state. Its arraylist.
[ [10080, 10029, 10005, Supplier1, Private], [10081, 10030, 10005, Supplier2, Private], [10082, 10029, 10006, Supplier1, Private], [10083, 10030, 10006, Supplier2, Private] ]
a) how to work with an arraylist inside an arraylist?
b) how to keep track of which 'ID2' value you've already seen?
c) how to make the copy of the arraylist lines you like?
You can't be confused about all of this, because then you simply need to spend more time studying and practicing programming in general, not just the Java language.