java - ArrayList avalible everywhere in the project -


i looking implement arraylist avalible everywhere in project. want dynamicly add, delete elements, etc. of arraylist , send via retrofit.

any solution?

you can declare array static :

public static  list<string> myarray =  new arraylist<>(); 

you can access anywhere

myarray.add("test"); 

Comments

Popular posts from this blog

'hasOwnProperty' in javascript -

python - ValueError: No axis named 1 for object type <class 'pandas.core.series.Series'> -

java - How to provide dependency injections in Eclipse RCP 3.x? -