SHARE
TWEET

Untitled

a guest Jan 17th, 2019 67 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. MyReviewObject[] co = new MyReviewObject[reviews.size()];
  2.             int index = 0;
  3.  
  4.             for (@SuppressWarnings("unused")
  5.             String i : reviews) {
  6.                 co[index] = new MyReviewObject(datelist.get(index),
  7.                         reviews.get(index), items.get(index),
  8.                         cats.get(index));
  9.                 index++;
  10.             }
  11.  
  12.             adapter = new MyReviewAdapter(getActivity(), co);
  13.             setListAdapter(adapter);
  14.    
  15. ArrayList<MyReviewObject> co = new ArrayList<MyReviewObject>();
  16.  
  17.  
  18.             for (String i : reviews) {
  19.                 co = new ArrayList<MyReviewObject>(datelist.add(i),reviews.add(i), items.add(i), cats.add(i));
  20.             }
  21.  
  22.             adapter = new MyReviewAdapter(getActivity(), co);
  23.             setListAdapter(adapter);
  24.    
  25. public class MyReviewObject {
  26.     public String comment;
  27.     public String date;
  28.     public String items;
  29.     public String cat;
  30.  
  31.     public MyReviewObject(String s1, String s2, String s3, String s4) {
  32.         this.date = s1;
  33.         this.comment = s2;
  34.         this.items = s3;
  35.         this.cat = s4;
  36.  
  37.     }
  38.  
  39. }
  40.    
  41. for (String i : reviews) {
  42.     MyReviewObject review = new MyReviewObject(datelist.get(i),
  43.                     reviews.get(i), items.get(i),
  44.                     cats.get(i));
  45.     co.add(review);
  46. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top