Suppose I have class:
class Product {
int pId;
String pName;
int pPrice;
}
I have Arraylist<Product>
, so can I get ArrayList<String>
which contain product name only without loop.
Say with help of cursor or collection utils or any other thing in android.