If you really, absolutely, positively, definitely, surely, urgently need global variables
you can have them in Java:
[code=java]
public class Globals {
// all your 'globals' here:
static int foo;
static double bar;
static String baz;
}
[/code]
Because all of the variables are static and public you can access/modify them
in any other class and method:
[code=java]
class AnotherClass {
final static double pi= Global.bar;
final int buz= Global.foo;
String myBaz;
public AnotherClass(St ring baz) { Global.baz= myBaz= baz; }
}
[/code]
I consider coding like this as Basic and Fortran coding *yeach*
Comment