?
2011-05-09 17:37:37 UTC
Anyways. So I am making a java app that pitches you into a game of Go Fish against some AI. I already know how to do all that at least, but one thing gets in my way repeatedly.
When I try to call a non-static function from the main function, it gives me an error. So I have to make all my other functions static. However, this means I cannot declare any variables outside of functions, and for boolean arrays at least that isn't possible.
I found that creating an entirely new boolean array as a function itself worked, but that looks very sloppy! Does anyone have any other solutions?