Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

phone number format java

long phoneNum = 123456789L;
    System.out.println(String.valueOf(phoneNum).replaceFirst("(d{3})(d{3})(d+)", "($1)-$2-$3"));
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #phone #number #format #java
ADD COMMENT
Topic
Name
1+4 =