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

 whats wrong with this code? want to allow users to enter
integers between 0 and 9 to return a string of those integers
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 form of a phone number
in the form of a phone number im using a training software.
im using a training software. this is all i have. im running sample test

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!