How to solve the Codewars's Create Phone Number
Today I try to solve the algorithm problem of codewars.
Description
Write a function that accepts an array of 10 integers (between 0 and 9), that returns a string of those numbers in the form of a phone number.
Example
new int[] {1, 2, 3, 4, 5, 6, 7, 8, 9, 0}) -> (123) 456-7890
Code
public class Kata {
public static String createPhoneNumber(int[] numbers) {
# Codewars COC 정책으로 인하여 코드 제거
return result;
}
}
Written on December 5, 2018