Global variable not accessible
Hi,
I'd like to declare a global variable in Main (or main), which is accessible from toto, in this code:
Code:
package pkg_main;
[COLOR="Blue"]//here 1[/COLOR]
public class Main{
[COLOR="Blue"] //here 2[/COLOR]
public static void main(String[] args) throws Exception{
[COLOR="Blue"] //here 3[/COLOR]
final IClient client=ClientFactory.getDefaultInstance();
client.startToto(new [COLOR="Blue"]toto()[/COLOR]);
}
}
I tried public int toto_age at the places //here without success.
An idea ? Thk