| Author |
Creating an array from part of a string
|
Richard Shelly
Greenhorn
Joined: Oct 03, 2005
Posts: 24
|
|
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.
|
<a href="http://www.somethingfm.net/" target="_blank" rel="nofollow">somthingFM</a> BOOYAH
|
 |
Garrett Rowe
Ranch Hand
Joined: Jan 17, 2006
Posts: 1295
|
|
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 ]
|
Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them. - Laurence J. Peter
|
 |
Richard Shelly
Greenhorn
Joined: Oct 03, 2005
Posts: 24
|
|
cheers man, but thankfully, ive already solved the problem, a couple of string tokenizers'. thank though
|
 |
 |
|
|
subject: Creating an array from part of a string
|
|
|