[Solved] Storing content in a buffer [closed]
[ad_1] I guess you’re looking for ArrayList. For example : ArrayList<String> listNodeContent= new ArrayList<String>(); //your code listNodeContent.add(current.getChild(“C”).getContent(0)); Then you can retrieve the content using different methods : ArrayList#get(int index), with an iterator (ArrayList#iterator()) or with a foreach loop : for(String tmp : listNodeContent){ System.out.println(tmp); } 6 [ad_2] solved Storing content in a buffer [closed]