Advertisement
Guest User

Untitled

a guest
Dec 10th, 2016
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. LinkedList<String> strings = new LinkedList<>();
  2. strings.add("ravi");
  3. strings.add("kishore");
  4. strings.add("runy");
  5. strings.add("lenin");
  6. strings.add("ali");
  7. strings.add("cheth");
  8.  
  9. for (String s : strings) {
  10. Log.e(TAG, "Set items are: " + s + "/n");
  11. }
  12.  
  13. Result:
  14.  
  15. CC: Set items are: ravi
  16. CC: Set items are: kishore
  17. CC: Set items are: runy
  18. CC: Set items are: lenin
  19. CC: Set items are: ali
  20. CC: Set items are: cheth
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement