Hello.
The question is how to reach the array?
When I call from class A, I get the length of the array 0, although it is filled with more than 100 elements. If you pull the content from class C until it fills it, it will show all the content,
Class A { B b = new B(); C c = new C(); public static void main(){ b.doSmth(); System.out.print(c.getArrayList()); } } Class B { C c=new C(); c.setArrayList(String s); } Class C { private ArrayList list=new ArrayList(); setArrayList(String s){ list.add(s); } getArrayList(){ return list.size(); } }