abcd
Monday, June 10, 2013
How to find duplicate values in ArrayList with out iterarting..?
List list =
new
ArrayList();
list.add(
"a"
);
list.add(
"a"
);
list.add(
"b"
);
list.add(
"c"
);
list.add(
"c"
);
System.out.println(list);
Set s =
new
HashSet(list);
System.out.println(
"Set :- "
+s);
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment