You could also use a getter function.
But why are you doing any of that from main in the first place?
Type: Posts; User: KevinWorkman
You could also use a getter function.
But why are you doing any of that from main in the first place?
Static things (variables, methods, classes, etc) are things that don't belong to a particular instance of a class. For example, JFrame.EXIT_ON_CLOSE doesn't care which instance of JFrame it belongs...