• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

At the end of my rope with some code

EyeMWing

Banned
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.
 
OH CRAP. I'M STUPID. God help my soul for making that godawful stupid mistake.

That means I figured it out, by the way.
 
Wait, give him a chance to prove his point. If he can write the same code in QBasic in fewer lines then we shall let him stay!!
 
btw, and sorry for the off-topic hijack, amdfanboy, you did you get the rollover text in your sig?

and htf did you get a user rating of 413968959?
 
Back
Top