[Solved] seprate object data via coma for every item but not last

[ad_1]

Answer

1.Declared a array list.

List<String> productPrice = new ArrayList<String>();

2.Stored a string object in that array list

fname = obj1.getPrice();
 productPrice.add(fname);

3.And in last used text utils for joining that array list items via comma.

android.text.TextUtils.join(",", productPrice);

[ad_2]

solved seprate object data via coma for every item but not last