Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * @author Timotius Wirawan
- * @version 27 Oktober 2020
- */
- import java.util.*;
- public class LinkedListContoh
- {
- public static void main(String args[])
- {
- LinkedList<String> al=new LinkedList<String>();
- al.add("Zaza");
- al.add("Yadi");
- al.add("Mutiara");
- al.add("Santoso");
- Iterator<String> itr=al.iterator();
- while(itr.hasNext()) {
- System.out.println(itr.next());
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment