Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

convert array to phone number java

Format phone number
String input = "1234567890";
 
String number = input.replaceFirst("(d{3})(d{3})(d+)", "($1) $2-$3");
 
System.out.println(number);
Source by howtodoinjava.com #
 
PREVIOUS NEXT
Tagged: #convert #array #phone #number #java
ADD COMMENT
Topic
Name
9+1 =