Hi All...

I am new to java, I am facing problem...
Problem: 1) I want to create a ArrayList <String> and add Strings into it.
problem: 2) I want to compare two Array List elements . their size and contents (strings type) which may be stored in any order.
For example

List<String> strlist = new ArrayList<String>(); 
List<String> strlist1 = new ArrayList<String>();

I want to compare the size and Elements in strlist and strlist1.

Please help me out...:(
Thanks in advance!

Recommended Answers

All 2 Replies

Thanks ...This doc really helped.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.