Format phone number

Joined
Nov 12, 2009
Messages
2
Reaction score
0
Hi,

I need to reformat number from 111-222-3333 to 1112223333.

Here is what i've got and it doesn't seem to work.

int[] columnLengths = new int[5];
columnLengths[0] = 3; //
columnLengths[1] = 1; // spaces
columnLengths[2] = 3; //
columnLengths[3] = 1; // spaces
columnLengths[4] = 4; //

String telephone = "";
IGlobalVariable GV_TELEPHONE = getGlobalVariable(blInfo,"GV_TELEPHONE");

String[] telephone_temp;
for (int i=0; i<13; i++)
{
telephone_temp = GV_TELEPHONE.getString();
}

String[] telephone_t;
telephone = telephone_t[0] + telephone_t[2] + telephone_t[4];

Thanks,
Roma
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,077
Latest member
SangMoor21

Latest Threads

Top