| Author |
getting object but looking value in .data file
|
Angus Ferguson
Ranch Hand
Joined: Jun 22, 2012
Posts: 240
|
|
Hi
I am reading from a file and setting the data in a List like this
When I retrieve the data I get the object definition instead of the value in the file. How could I get the value in the file?
Thanks
|
 |
Steve Luke
Bartender
Joined: Jan 28, 2003
Posts: 3026
|
|
Split returns an array. You will have to either choose which index in the array to add to your list, or iterate over the list to add them all, or convert the array to a List and use List.addAll(), like:
|
Steve
|
 |
 |
|
|
subject: getting object but looking value in .data file
|
|
|