Hi there,
Still pretty new at this but I've created an arraylist of arraylists as a 2d data structure for demographic data.
What I'm ultimately trying to do is write the data as csv
In the code below I can output the data to with System.out and it looks right in the console - it prints:
1,2,3,4,5,
21,45,54,32,67,
Alan,Steve,Rick,Jon,Chris,
1.82,1.53,1.72,1.49,1.93,
I thought I could just use the PrintWriter q I've created and use q.print( j.next() + ",") instead of the System.out line, when I try to run it I get a NoSuchElementException.
Any pointers?