Hey All!
I need to make an array of objects ( of a class i created). I
Below is some of the code. I want to make an array, parsedInfo, of objects from the class ParsedSiteInfo. In a function not shown, I have a for-loop that calls the function createNewSite(). So the array needs to be able to grow dynamically.
private ParsedSiteInfo[] parsedInfo;
private int sites = 0;
private void createNewSite()
parsedInfo[sites] = new ParsedSiteInfo();
sites++;
}
I ran this code with some debug print statements and determine the program as a problem with this line:
parsedInfo[sites] = new ParsedSiteInfo();