Steffon 5 years ago
parent
commit
c44ffbd59b
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      src/main/java/rocks/zipcode/quiz5/arrays/ArrayUtils.java

+ 1
- 0
src/main/java/rocks/zipcode/quiz5/arrays/ArrayUtils.java View File

@@ -31,6 +31,7 @@ public class ArrayUtils {
31 31
         String[] missingLastElement = new String[values.length - 1];
32 32
         int n = 0;
33 33
         String lastElement = getLastElement(values);
34
+        int lastElementIndex = values.length-1;
34 35
 
35 36
         //if the position of last element is equal to the position of the last element
36 37