How do you define Global variables in Java ?
To mark Global Variable you can obtain control of static Keyword
public class Example { public static int a; public static int b;}
public class Example {
public static int a;
public static int b;
}
now you can obtain a and b from everywhere by requesting
Example.a;Example.b;
Example.a;
Example.b;