Mavzu: Shablonlarning standart kutubxonasi (stl). Stl komponentalar


Download 155.92 Kb.
bet5/5
Sana24.01.2023
Hajmi155.92 Kb.
#1115874
1   2   3   4   5
Bog'liq
5-mavzu (Shablonlarning standart kutubxonasi (STL). STL komponentalari)

int i = itr.next();
}
Removing odd elements
if (i % 2 != 0)
itr.remove();
class Test {
public static void main(String[] args)
{
// Creating a an ArrayList with String specified
ArrayList al = new ArrayList();
al.add(“ma`lumotlar");
al.add(“tuzilmasi");
// Typecasting is not needed
String s1 = al.get(0);
String s2 = al.get(1);
}
}
ArrayList al = new ArrayList();
al.add("String");
al.addAll(Collection);
al.clear();
al.clone();
al.contains();
al.containsAll(Collection);
al.equals();
al.forEach();
al.indexOf(0);
al.isEmpty();
al.iterator();
al.remove();
al.replaceAll(arg0);
...

Download 155.92 Kb.

Do'stlaringiz bilan baham:
1   2   3   4   5




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling