Author | Message |
---|---|
Anonymous
Posts: 166
|
Posted 12:37 Apr 12, 2014 |
so for the homework is it ok to make and ArrayList to store all the words and then change the array to a string using String (char []) or .valueOf() to do everything else. |
kknaur
Posts: 540
|
Posted 12:42 Apr 12, 2014 |
You may only use a data structure to store the list of random words / phrases to choose from. After that once you get the word from the word pool, you need to store it as a string or stringbuilder and work with it that way. You may not convert the String to an array using toCharArray(). I would like to see what you can come up with just using the String / StringBuilder classes. HINT: Remember strings are indexed.....so you really don't need to use an Array or ArrayList.... |