Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- LinkedList<String> strings = new LinkedList<>();
- strings.add("ravi");
- strings.add("kishore");
- strings.add("runy");
- strings.add("lenin");
- strings.add("ali");
- strings.add("cheth");
- for (String s : strings) {
- Log.e(TAG, "Set items are: " + s + "/n");
- }
- Result:
- CC: Set items are: ravi
- CC: Set items are: kishore
- CC: Set items are: runy
- CC: Set items are: lenin
- CC: Set items are: ali
- CC: Set items are: cheth
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement