Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

strip only the numbers from any formatted string of phone number

This is a method which returns a String contains numbers init.The phone numbers may contain in differnt formats Ex: (123) 456-7890
                                 123-456-7890
so we can read these type of characters and returns only the numbers using java method isDigit from Character class.
Read more »


This post first appeared on JAVAbyNATARAJ, please read the originial post: here

Share the post

strip only the numbers from any formatted string of phone number

×

Subscribe to Javabynataraj

Get updates delivered right to your inbox!

Thank you for your subscription

×