Seems like the kind of thing that I should have known a long time ago, but I guess I got a little too comfortable with AS3 to know otherwise.
In AS3 the main method is bound to the document class (which, while not under a specific name like main(), is still called each time the program starts up). In Java, there's the main() method, and can be used as an entry point to start the application. Everything is fine so far. However, my confusion arises from this - unlike in AS3 where the method is like a normal function, in Java the main method is static, and there lies my problem.
Since the main method is static, it means that it can only access other variables and functions which are also static. How would I proceed from there? I don't want to make all the function static. Or am I missing something obvious? For the sake of, say, syntactic sugar, is it equivalent to what happens in AS3 if I create my java files as usual, but for the main program code I create a separate file that starts up the main application? Is there any other way that it's done? If so, what could be done instead?
Slint approves of me! | "This is Newgrounds.com, not Disney.com" - WadeFulp
"Sit look rub panda" - Alan Davies