I wanted to store data in shared references. There are 10 different items with different price and details.
User will select to add to cart. If I were to retrieve the information of items added and display the total price, items in cart with highest and lowest price.

Is it better to stored by
(i) each item with different class of sharedpreference,
(ii) sharedpreference with class of name, price, detail
or any other ways?