Question: whats wrong with this code? want to allow users to enter integers between 0 and 9 to return a string of those integers in the

1-import org.junit. Test; 2 import static org.junit. Assert. assertEquals; 4-public class Phone Example Tests { 5 @Test 6public void tests() { 7 assertEquals("(123) 456-7890", kata.createPhone Number(new int[] {1, 2, 3, 4, 5, 6, 7, 8, 9, 0))) 8 } 9 } ./src/main/java/Kata.java:4: error: missing return statement 1 error 1 - public class Kata { 2. public static String createPhone Number(int[] numbers) { 3 // Your code here! 5
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
