Compiler spits out "Cannot reference non-static method add(java.lang.Object) from a static context"
Add in this case belongs to Java.util.ArrayList. I've used this in this context more times than I can count - in fact, I've used it like this since I learned to code. I just did it 2 hours ago and it worked fine.
And yes, I've tried moving list to a static variable and declaring it globally, but that did no good.
Add in this case belongs to Java.util.ArrayList. I've used this in this context more times than I can count - in fact, I've used it like this since I learned to code. I just did it 2 hours ago and it worked fine.
And yes, I've tried moving list to a static variable and declaring it globally, but that did no good.
