I'm trying to populate arrays without knowing beforehand the size and running into problems defining/declaring the variable/s. (Or alternately I want to change the size, which I'm now doing by writing to a new file. There have to be easier ways.)
/*
Second Line??
I got this to work but Kludge.
How do I declare the variable 'lookupPiece' without referring to a specific line of the source file???
I am not understanding how to properly declare these.
This is causing me many problems in these arrays. Sometimes I can't know the length of the array while I am creating it.
*/
String[] dataFile = loadStrings("output.csv");
String[] lookupPiece = split(dataFile[1], ","); // this defines the variable, and lets me get the number of elements for defining the array. But a KLUDGE
int numElements = lookupPiece.length;
String[][] lookupTable = new String[dataFile.length][numElements];