Collections utility methods
Në shqip: Metodat ndihmëse të Collections
ShpjegimiSQ
Klasa Collections ka metoda të gatshme për lista: reverse(), shuffle(), max(), min(), frequency(), dhe unmodifiableList() që e mbron listën nga ndryshimet.
EnglishEN
The Collections class has ready-made methods for lists: reverse(), shuffle(), max(), min(), frequency(), and unmodifiableList() which protects a list from changes.
Si ta mendosh
Si kutia e veglave që vjen me raftin.
Lexoje në anglisht
Like the toolkit that comes with the shelf.
Shembull kodijava
Collections.shuffle(pyetjet);
int max = Collections.max(notat);
int sa = Collections.frequency(notat, 5);