This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
i have a String 1234567890 and i want it in 123-456-7890 format.. is there anyway i can use the formatter or any other class to achieve this and convert it to phone number format..
SCJP 1.4<br />SCWCD 1.4(91%)<br />Working on SCJD -Bodgitt & Scrapper Constructions...<br /> <br />"It takes 43 muscles to frown & 17 to smile but it doen't take any to just sit there with a dumb look on your face .. Keep Smiling "
I'd probably write a one line conversion method using substring and concatenation. Or use a generalized string rearranger from my own library. Let's see if somebody chimes in with a way to do it with Formatter.
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi