Is it possible to access a variable from a different class in the same project.
If i can remember i think it is a way. I just cant remember. If anyone can help out it will be greatly appreciated.
Thanks.
For example if i save String userInfo; in one class
How will i be able to access and link this information to the second class?
Is it possible to access a variable from a different class in the same
Share
You could declare it in the following manner:
public static String myString = "myString"And access it in the following manner;
TheClass.myString