Преглед изворни кода

Got all Test passing still have to get that refactoring done

Nicholas Maidanos пре 6 година
родитељ
комит
9c5235a6fa
2 измењених фајлова са 4 додато и 4 уклоњено
  1. 2
    2
      IntegerDuplicateDeleter.java
  2. 2
    2
      StringDuplicateDeleter.java

+ 2
- 2
IntegerDuplicateDeleter.java Прегледај датотеку

@@ -10,7 +10,7 @@ public class IntegerDuplicateDeleter extends DuplicateDeleter<Integer>{
10 10
     
11 11
     @Override
12 12
     public Integer[] removeDuplicates(int maxNumberOfDuplications){
13
-        Arrays.sort(this.array);
13
+        //Arrays.sort(this.array);
14 14
         
15 15
         int sizeOfArray = this.numOfDupUnder(maxNumberOfDuplications);
16 16
         Integer[] newArray = new Integer[sizeOfArray];
@@ -39,7 +39,7 @@ public class IntegerDuplicateDeleter extends DuplicateDeleter<Integer>{
39 39
     @Override
40 40
     public Integer[] removeDuplicatesExactly(int exactNumberOfDuplications){
41 41
         
42
-        Arrays.sort(this.array);
42
+        //Arrays.sort(this.array);
43 43
         
44 44
         int sizeOfArray = this.numOfExactDup(exactNumberOfDuplications);
45 45
         Integer[] newArray = new Integer[sizeOfArray];

+ 2
- 2
StringDuplicateDeleter.java Прегледај датотеку

@@ -9,7 +9,7 @@ public final class StringDuplicateDeleter extends DuplicateDeleter<String> {
9 9
     
10 10
     @Override
11 11
     public String[] removeDuplicates(int maxNumberOfDuplications){
12
-        Arrays.sort(this.array);
12
+        //Arrays.sort(this.array);
13 13
         
14 14
         int sizeOfArray = this.numOfDupUnder(maxNumberOfDuplications);
15 15
         String[] newArray = new String[sizeOfArray];
@@ -36,7 +36,7 @@ public final class StringDuplicateDeleter extends DuplicateDeleter<String> {
36 36
     
37 37
     @Override
38 38
     public String[] removeDuplicatesExactly(int exactNumberOfDuplications){
39
-        Arrays.sort(this.array);
39
+        //Arrays.sort(this.array);
40 40
         
41 41
         int sizeOfArray = this.numOfExactDup(exactNumberOfDuplications);
42 42
         String[] newArray = new String[sizeOfArray];