I’m trying to format a phone number which is stored without formatting in a database.
Now currently I just use substring and String concatination to form the formatted String but I’m looking for a cleaner/faster/less memory intensive method. (and I don’t mean just using a StringBuilder).
I looked at String.format but that only takes a list of parameters (as in …) and not a chararray.
I’ll toss in my 2 cents after some lookup:
}