Advertisement
Guest User

Untitled

a guest
Oct 26th, 2016
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. /*
  2. * To change this license header, choose License Headers in Project Properties.
  3. * To change this template file, choose Tools | Templates
  4. * and open the template in the editor.
  5. */
  6. package reeks04;
  7.  
  8. import java.util.ArrayList;
  9.  
  10. /**
  11. *
  12. * @author Simon Van den Bossch
  13. */
  14. public class Reeks04 {
  15.  
  16. /**
  17. * @param args the command line arguments
  18. */
  19. public static void main(String[] args) {
  20. /* Oefening 1 */
  21. ArrayListTest arraylisttest = new ArrayListTest();
  22. arraylisttest.leesBits();
  23.  
  24. /* Oefening 2 */
  25. String[] w = {"appel", "banaan", "citroen", "banaan", "citroen"};
  26. ArrayList<String> nieuw = new ArrayList();
  27. nieuw = arraylisttest.uniekeWoorden(w);
  28. for (String s : nieuw) {
  29. System.out.println(s);
  30. }
  31. }
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement