Hello bluefloyd8
Arrays are not dynamic data structures and you cannot make them (that easily). You need to specify their size before you use them. Your compiler probably gave you a null pointer exception, right? So change you code to:
public static final int structureSizeLimit = 10000;
private ParsedSiteInfo[] parsedInfo = new ParsedSiteInfo[structureSizeLimit];
private int sites = 0;
private void createNewSite() {
this.parsedInfo[this.sites] = new ParsedSiteInfo();
this.sites++;
}
Remember to check this limit each time you try to add elements. See this
tutorial on vectors and other dynamic data structures.
Good luck.
