Leon 5 years ago
parent
commit
fa424956f0

+ 1
- 1
pom.xml View File

@@ -5,7 +5,7 @@
5 5
     <modelVersion>4.0.0</modelVersion>
6 6
 
7 7
     <groupId>rocks.zipcode</groupId>
8
-    <artifactId>quiz3a</artifactId>
8
+    <artifactId>quiz5</artifactId>
9 9
     <version>1.0</version>
10 10
     <build>
11 11
         <plugins>

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

@@ -16,7 +16,7 @@ public class ArrayUtils {
16 16
         return null;
17 17
     }
18 18
 
19
-    public static String removeLastElement(String[] values) {
19
+    public static String[] removeLastElement(String[] values) {
20 20
         return null;
21 21
     }
22 22
 }

+ 1
- 1
src/test/java/rocks/zipcode/quiz5/arrays/arrayutils/RemoveLastElementTest.java View File

@@ -44,7 +44,7 @@ public class RemoveLastElementTest {
44 44
 
45 45
     private void test(String[] expected, String[] input) {
46 46
         // when
47
-        String[] actual = ArrayUtils.removeMiddleElement(input);
47
+        String[] actual = ArrayUtils.removeLastElement(input);
48 48
 
49 49
         //then
50 50
         Assert.assertArrayEquals(expected, actual);