MadamZuZu
05-09-2006, 04:11 PM
hello.
i'm very new to java and i have this problem.
I need to input a phone number and then split it into different numbers.
so, my dilema is how to do it.
should i take the input as Integer, and then try to split it into separate numbers?
or is there a way (like in C++ pointers) to input the integer into an int array right away, from the command line?
i don't know if im being very confusing... here's an example
lets say the number is 301-221-1083 i would like to have an array of
3
0
1
2
2
1
1
0
8
3
......... you know what i mean?
Thanks for your help!!! :)
Tanya
i'm very new to java and i have this problem.
I need to input a phone number and then split it into different numbers.
so, my dilema is how to do it.
should i take the input as Integer, and then try to split it into separate numbers?
or is there a way (like in C++ pointers) to input the integer into an int array right away, from the command line?
i don't know if im being very confusing... here's an example
lets say the number is 301-221-1083 i would like to have an array of
3
0
1
2
2
1
1
0
8
3
......... you know what i mean?
Thanks for your help!!! :)
Tanya