Forums Register Login

Creating an array from part of a string

+Pie Number of slices to send: Send
ok, so i have to line in a line of text from a file in the format of:
<integer>;<array of integers>;<string>

now, getting the int and String arent at all hard, but i am unsure how to fill an array with the numbers in the middle there.
+Pie Number of slices to send: Send
Have you checked out the String.split() method. It returns a String[] that you should be able to parse into an int[].
[ April 23, 2006: Message edited by: Garrett Rowe ]
+Pie Number of slices to send: Send
cheers man, but thankfully, ive already solved the problem, a couple of string tokenizers'.
thank though
What are your superhero powers? Go ahead and try them on this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 739 times.
Similar Threads
javascript "object expected " error
a question about a drop-down menu
Nested members in XML-RPC
cannot get response!!!
generics and maps
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 04:39:44.