retainAll

Maxik21

Mitglied
hallo ich möchte gerne die frage beantworten, jedoch habe ich bisschen Probleme damit, Also was die Methode retainAll macht ist mir klar aber ich verstehe die frage mit welcher mathematischen operation entspricht retainAll nicht. Kann mir einer vielleicht behilflich sein ?
  • Was macht die Methode retainAll? Angenommen, wir verwenden zwei Mengen: Welcher mathematischen Operation entspricht retainAll? Implementieren Sie ein Beispiel
 

temi

Top Contributor
Es kann auch hilfreich sein, einen Blick in die Doku zu werfen. Die Doku ist dein Freund. :)
Retains only the elements in this set that are contained in the specified collection (optional operation). In other words, removes from this set all of its elements that are not contained in the specified collection. If the specified collection is also a set, this operation effectively modifies this set so that its value is the intersection of the two sets.
 
Ähnliche Java Themen
  Titel Forum Antworten Datum
O Probleme mit retainAll Java Basics - Anfänger-Themen 2

Ähnliche Java Themen

Neue Themen


Oben