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 »123-456-7890
so we can read these type of characters and returns only the numbers using java method isDigit from Character class.