Android examples for java.lang:String Parse
Sanitize Phone Number String
//package com.java2s; public class Main { public static String SanitizePhoneNumber(String phoneNumber) { phoneNumber = phoneNumber.replace(" ", ""); phoneNumber = phoneNumber.replace("-", ""); phoneNumber = phoneNumber.replace("+", ""); return phoneNumber; }// www . j a v a 2 s . co m }