Is there a foreach statement in java that I can use to create a string from an ArrayList such as:
ArrayList<String> captured_photos=new ArrayList<String>();
captured_photos.add("pic1");
captured_photos.add("pic2");
String MyMessage="";
foreach(AnElement,My_ArrayList){MyMessage+=AnElement+", ";}
That will create MyMessage: "pic1, pic2, "?