Advertisement
Guest User

Untitled

a guest
Mar 30th, 2020
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. while (arrayToDistinct.remove("Hallo")) {}
  2. for (int i =0; i< arrayToDistinct.size();i++) {
  3. if ( arrayToDistinct.get(i).equals("Hallo")) {
  4. arrayToDistinct.remove(i);
  5. }
  6. }
  7.  
  8. System.out.println(arrayToDistinct);
  9.  
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement