I get a problem about returning phone keypads.
For instance, if I input 1-80-0Apple, it will return 1-80-027753.
Could somebody tell me how to figure out this one?
I get a problem about returning phone keypads. For instance, if I input 1-80-0Apple,
Share
If you are going to deal with different formats for phone numbers entered by users I would suggest that you use Google’s libphonenumber (http://code.google.com/p/libphonenumber/). It has lots of utilities for handling phone numbers.
For the case that you ask, you can do this:
That would print: