this is my code, i see here I am appending a comma between each row. for the last row i want to append a full stop instead of a comma, any ideas of how i could do that?
while(!cursor2.isAfterLast()) {
String mIngredientName = cursor2.getString(1) + ", " ;
al.add(mIngredientName);
cursor2.moveToNext();
}
I have an idea in that it involves if statements but I’m unsure any guidance?
1 Answer