Sabtu, 07 Januari 2012

Class Next

import java.util.*;

public class next{
  public static void main (String []args) {
  String elements[] = {"Program", "Buat", "Belajar"};
  Set s = new HashSet(Arrays.asList(elements));
  Iterator i = s.iterator();
  while (i.hasNext()) {
  System.out.println(i.next());
  }
  }
  }

OUT  PUT

0 komentar:

Posting Komentar