Hi there,
I have an ArrayList<String> and i'm using an Iterator loop to display all the strings one by one
there's a problem because when I call the method it displays the memory address of the string.Code :public void displayAllTitles(){ Iterator<String> it = bestSellersNames.iterator(); while(it.hasNext()){ it.next(); System.out.println(it); } }
How I can display the string itself without using another method?
Thanks
