One of hundreds of answers available with our premium content service.
A: The answer to your question would depend on the format of the list, which is perhaps stored in a file? If there is a consistent character pattern that separates the list items, you might use a StringTokenizer to capture them. The example below creates a BufferedReader from a FileReader and uses the readLine() method to acquire the data.
… full answer hidden
Premium members click below for full answer
How can I generate an array from a list?