14.9 Set Interface in Java Collection Framework

preview_player
Показать описание


Follow on Facebook:

Subscribe to our other channel:
Telusko Hindi :
Рекомендации по теме
Комментарии
Автор

Thank you for this video. Helped me a lot!!

NZEDPlays
Автор

Not a bad intro. Shorter than other videos that cover more details.

jvsnyc
Автор

what should we use if we want to return type in set, or arryList or in general collection

ravishankar
Автор

I think also LinkedHashSet orders elements. great video very helpful.

DaDavid
Автор

3:40 non-duplicate
5:35 HashSet vs TreeSet

tmzpanda
Автор

And how we will get the elements in descending order

nashikkarrecipe
Автор

Hi Navin, What I have seen in practice is that BOTH HashSet and TreeSet do not show the elements in order. It is also shown in your video. Please correct your future videos on that.

Girish_theTechieGuy
Автор

Can we use basic for loop here or it always has to be enhanced one?

Please reply sir

PriyankaSharma-dydg
Автор

Can we add a value on index basis using hashset

SaiKiran-dqxu
Автор

this was not the sequence, If we will use Linkedhashset at the place of treehashset then we can get the same sequence which we have entered and if we want the records in ascending order then we should use treeset. correct me of I am wrong. Thanks 🙏

code-aman
Автор

How iterator internally works for Set and list ? difference between both internal working.?

anishkumark.a.
Автор

package Ass5;

import java.util.HashSet;
import java.util.Set;

public class Setexample
{
public static void main(String [] args)
{
Set<Event> e1=new HashSet<>();


Event e2=new Event();

e2.setEventid(1);


e1.add(e2);

Event e3= new Event();

e3.setEventid(1);


e1.add(e3);

for(Event e4 : e1)
{


}
}
}


This is my setexample code
while running this code i am not getting proper output as set has its own functionality that it should contain unique value but while running this code i am getting duplicate value as well so what is the solution for this .

divyeshakabari