Java Bangla Tutorials 150 : HashSet

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

oshadharon vaia, jazakallahu khairan.

maroofraktim
Автор

thank you vai, From Leading University

sukantasutradhar
Автор

Vaiya I have a question. When you remove the first element Apple, then why in the output is showing srawberry first? Shouldn't it be orange because it was the 2nd element.

lamiaakter
Автор

sir kichu kichu somoy sound mute hoye jai ??

raihanation
Автор

Bhaiya jodi printing the for each loop diye korte chai akhne variable ta ki typer nibo???

hrithikrudra
Автор

public class HashMapDemo {

public static void main(String[] args) {
HashSet<String> fruitname = new HashSet<String>();

fruitname.add("apple");
fruitname.add("orange");
fruitname.add("banana");
for (String fruit : fruitname) {
System.out.println(fruit);
}
fruitname.remove("apple");

fruitname.clear();

}
}

nishatsultana