File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change
1
+ import java .util .ArrayList ;
2
+ import java .util .List ;
3
+
4
+
5
+ public class MainClass {
6
+
7
+ public static void main (String [] args ) {
8
+ DuplicateRemover .getUnique (getDuplicateList ());
9
+ DuplicateRemover .getUnique_1 (getDuplicateList ());
10
+ }
11
+
12
+ private static List <String > getDuplicateList () {
13
+
14
+ List <String > duplicateList = new ArrayList <String >();
15
+ duplicateList .add ("goofy" );
16
+ duplicateList .add ("betty" );
17
+ duplicateList .add ("omega" );
18
+ duplicateList .add ("betty" );
19
+ duplicateList .add ("foto" );
20
+ duplicateList .add ("goofy" );
21
+ duplicateList .add ("goofy" );
22
+ duplicateList .add ("betty" );
23
+ duplicateList .add ("omega" );
24
+ duplicateList .add ("betty" );
25
+ duplicateList .add ("foto" );
26
+ duplicateList .add ("goofy" );
27
+
28
+ return duplicateList ;
29
+ }
30
+ }
You can’t perform that action at this time.
0 commit comments