Also, if you want it to be truly global then just declare it to be static:
Code:
class NameHolder{
public static String getName(){
return name;
}
public static setName(String name){
this.name = name;
}
private static String name;
}
Then whenever you want to modify this "global" name just call NameHolder.setName(String), etc... I'm pretty sure this should work. I get my languages confused sometimes. Good Luck MYenigmaSELF:-9 myenigmaself@yahoo.com
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.