|
you could create an array of Strings and use Delimeter attached to your in.next() that will take each word and put it into the array. After that it's as easy as using Array.set(position, word) (I think thats the method you will need to look it up).
Pretty much you just tell it the word and position in the array to set the word and it will automatically re-organize everything
|