Browse Source

new changes

Xcuello 5 years ago
parent
commit
047945e1ff

+ 1
- 2
src/main/java/com/zipcodewilmington/arrayutility/ArrayUtility.java View File

@@ -85,8 +85,6 @@ public class ArrayUtility <T> {
85 85
 
86 86
       ArrayList<T> tempArr = new ArrayList<>();
87 87
 
88
-        int counter = 0;
89
-
90 88
         for(int i = 0; i < list.length; i++){
91 89
 
92 90
             if(!list[i].equals(valueToRemove)) {
@@ -97,6 +95,7 @@ public class ArrayUtility <T> {
97 95
             }
98 96
         }
99 97
         int newLength = tempArr.size();
98
+
100 99
         list = (T[]) Array.newInstance(list.getClass().getComponentType(),newLength);
101 100
 
102 101
         return tempArr.toArray(list);