TreeSet Details part 5

  Рет қаралды 156,710

Durga Software Solutions

Durga Software Solutions

Күн бұрын

This Video explains Core Java - Collection Framework | TreeSet Details. Training Tutorial delivered by our Trainer Durga Sir.
For more details visit : bit.ly/2d8XIN9
DURGASOFT is INDIA's No.1 Software Training Center
Trainer Name : Mr.Durga
Course : Core Java
Topic : TreeSet Details
Methods of Training : Inclass, Online, Video based training
Location : 2nd Floor, Canara Bank Building, S.R Nagar, Hyderabad-500032
Contact Phone : +91-8885252627,+91-7207212428,+91-7207212427, (US)+1-(443) 332-6786
Email : Durgasoftonlinetraining@gmail.com, Info@Durgasoftonline.com
Other Courses We Offered :
JAVA, OCJP/SCJP, .NET , ANDROID, HADOOP, TESTING TOOLS , ADF, INFORMATICA, TABLEAU, IPHONE, OBIEE, ANJULAR JS, SAP,etc.
Enjoy and stay connected with us!!
►Subscribe us on KZbin: goo.gl/drpxPQ
►Like us: / durgasoftonline
►Follow us: / durgasoftonline
►Circle us: plus.google.co...
© 2016 Durga Software Solutions Pvt Ltd.

Пікірлер: 83
@umeshmor820
@umeshmor820 8 жыл бұрын
Simply superb explanations ,Thank you so much sir for all the sessions .Its the the work of scholars like you who can contribute to the society , inspire and help people to learn the things easily.Hope wishes of all your viewers encourages you to keep up the best work ..Thank you so much .
@gprahalladrao
@gprahalladrao 5 жыл бұрын
No doubt Durga Sir is demo god of Java
@vaibhavsingh6917
@vaibhavsingh6917 4 жыл бұрын
We can also use Lambda Expression here TreeSet treeSet = new TreeSet( (Object o1, Object o2) -> { Integer i = (Integer) o1; Integer j = (Integer) o2; if (i < j) return 1; else if (i > j) return -1; else return 0; } );
@jvsnyc
@jvsnyc 4 жыл бұрын
You certainly can. Venkat S pushes everyone hard to try to only do one-line lambdas, we could still define a function and pass it in as a method reference and make (almost) everyone happy.
@priyanshuborthakur7773
@priyanshuborthakur7773 9 жыл бұрын
Superb. The way you explain things is simply great.
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 9 жыл бұрын
Priyanshu Borthakur View 42 videos on Collections in Java, kzbin.info/www/bejne/qHqWh55_qahjm6M View 5 videos on JSF, kzbin.info/www/bejne/qHLEYqqtjLGqZ7s View 50 videos on Oracle, kzbin.info/www/bejne/pomYiH2ZqdNmgdk View 35 videos on Hibernate, kzbin.info/www/bejne/iYubkpWHaNugmsU View 115 videos on Data Structures, kzbin.info/www/bejne/pXKkmnWHe7h4n80 View 58 videos on Struts, kzbin.info/www/bejne/pIrUpKGofaymh8k View 74 videos on Spring, kzbin.info/www/bejne/j6HWd4drZdKnntU View 41 videos on CRT, kzbin.info/www/bejne/nHW1n36GrtuFZ5Y View 12 videos on JAVA Reflections API & Annotations kzbin.info/www/bejne/eKmmqGOrid2NiNU View 39 videos on Java Real Time Project Implementation on Spring,Struts & Hibernate, kzbin.info/www/bejne/n3zRk2N3nLCNgJI
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 9 жыл бұрын
Durga Software Solutions View 9 videos on ENUM, kzbin.info/www/bejne/imLJfoqtfp53Z6c View 16 videos on Serialization, kzbin.info/www/bejne/mHrdl6Wsmdlqp68
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 9 жыл бұрын
Durga Software Solutions Hi, We are very Happy to say Our Expert Faculty Durga Sir's One-to-One Video Sessions on "Core Java with SCJP/OCJP" are available. Shooted from direct Class Room. YOu can access these videos from anywhere anytime. Around 200+ hours training, 178 Videos with clear explanation on every concept. 100% Satisfaction and Perfection in Subject guaranteed. For Demo Sessions Please call or drop a mail to us... DURGASOFT Online Training ph: 91-8885252627 mail :durgasoftonline@gmail.com, durgasoftonlinetraining@gmail.com Demo Sessions on youtube: 1. Language Fundamentals(16 Videos)kzbin.info/www/bejne/m4W7lWtvqZ2hnas 2. Operators & Assignments(7 Videos)kzbin.info/www/bejne/Z3uqgIOeft6bd68 3. Flow Control(6 Videos)kzbin.info/www/bejne/jmfVhGyseZ5gp68 durgasoft.com durgasoftonlinetraining.com facebook.com/durgasoftware durgajobs.com facebook.com/durgajobsinfo
@ashwanisingh-dp7ce
@ashwanisingh-dp7ce 5 жыл бұрын
Why tree set has repeated number.. It should have unique value as it implements set interface
@jayap8355
@jayap8355 3 жыл бұрын
Same doubt... Wouldn't it give an error?
@adityasaxena6619
@adityasaxena6619 5 жыл бұрын
Sir you said if we add first object then there would be no comparision but it is comparing even for first value also compare(10,10) is running please explain why?
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 5 жыл бұрын
Hello Aditya. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
@virtuevishnu
@virtuevishnu 9 жыл бұрын
You are awesome sir, God bless you.
@ajaywankhade5054
@ajaywankhade5054 10 ай бұрын
Thank u sir
@shaileshsingh8413
@shaileshsingh8413 8 жыл бұрын
Effortlessly good thank you sir...
@mharisundar1
@mharisundar1 8 жыл бұрын
Very detailed explanation, really thanks .
@chandansamant07
@chandansamant07 8 жыл бұрын
Nice trick...for implementing descending..
@manishaagarwal5385
@manishaagarwal5385 5 жыл бұрын
There is a typing mistake happen in notes that t.add(20) when it compare (20,10)--> it'll return -ve value but it mentioned as +ve ..so plz update the notes.
@abhilashkokkonda1713
@abhilashkokkonda1713 5 жыл бұрын
Excellent
@jayap8355
@jayap8355 3 жыл бұрын
Sir, As duplicate objects are not allowed in treeset, then how you took t.add(20) and t.add(20) Please clear my doubt
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 3 жыл бұрын
Hello Jaya. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
@TheIndianVCC
@TheIndianVCC 2 жыл бұрын
How can I get this full course by Durga Sir, Online?
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 2 жыл бұрын
Hello Friend. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
@ravi9516
@ravi9516 6 жыл бұрын
Excellent sir!!!
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 6 жыл бұрын
Hello Ravi. Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos. For more videos, Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627,7207212427/28
@sanjay-fr5ul
@sanjay-fr5ul 8 жыл бұрын
Sir, in the last section of this video you have shown to add duplicate values by returning +1 or -1 So does it violates basic properties of Set??? Plz reply
@edwindhina
@edwindhina 8 жыл бұрын
sandy1316, you can avoid this by including the below code. if(integer1==integer2) return 0; else return 1; this code will eliminate duplicate. Basic idea is compare() method will do whatever we write in it. It wont mind the basic rule what Set has to follow. simple as that. Hope it helps you/
@ranirawat9810
@ranirawat9810 7 жыл бұрын
sir please can you tell, even though in mycomparator class you only implements comparator interface. then how you are directly using compareTo() method of comparable class. For using compareTo() method dont you need to implements comparable interface. It seems bit confusing to me.
@PawanKumar-zb3lu
@PawanKumar-zb3lu 7 жыл бұрын
@RANI RAWAT actually he is using compareTo() method with Integer object and all Wrapper classes and Strings implements Comparable interface and compareTo() method is public so directly can be used....Hope this will help u
@prashantjadaun6952
@prashantjadaun6952 4 жыл бұрын
only best
@rajivraghu9857
@rajivraghu9857 10 жыл бұрын
Super Explanation.. :)
@aartimali838
@aartimali838 8 жыл бұрын
Awesome !
@rahulkad5392
@rahulkad5392 2 жыл бұрын
Sir here only 10 insert what is the error there
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 2 жыл бұрын
Hello Rahul. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
@rajeshreddyalla7636
@rajeshreddyalla7636 10 жыл бұрын
thank u so much...sir really awesome
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 9 жыл бұрын
Rajesh Reddy Alla View 42 videos on Collections in Java, kzbin.info/www/bejne/qHqWh55_qahjm6M View 5 videos on JSF, kzbin.info/www/bejne/qHLEYqqtjLGqZ7s View 50 videos on Oracle, kzbin.info/www/bejne/pomYiH2ZqdNmgdk View 35 videos on Hibernate, kzbin.info/www/bejne/iYubkpWHaNugmsU View 115 videos on Data Structures, kzbin.info/www/bejne/pXKkmnWHe7h4n80 View 58 videos on Struts, kzbin.info/www/bejne/pIrUpKGofaymh8k View 74 videos on Spring, kzbin.info/www/bejne/j6HWd4drZdKnntU View 41 videos on CRT, kzbin.info/www/bejne/nHW1n36GrtuFZ5Y View 12 videos on JAVA Reflections API & Annotations kzbin.info/www/bejne/eKmmqGOrid2NiNU View 39 videos on Java Real Time Project Implementation on Spring,Struts & Hibernate, kzbin.info/www/bejne/n3zRk2N3nLCNgJI View other videos on ADV JAVA kzbin.info/www/bejne/bmTNfaSKdsekh7c
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 9 жыл бұрын
Durga Software Solutions View 9 videos on ENUM, kzbin.info/www/bejne/imLJfoqtfp53Z6c View 16 videos on Serialization, kzbin.info/www/bejne/mHrdl6Wsmdlqp68
@anilkumar-po4qr
@anilkumar-po4qr 9 жыл бұрын
great
@grvlal
@grvlal 8 жыл бұрын
Epic!
@SUNNY143CHANDU
@SUNNY143CHANDU 10 жыл бұрын
thankyu sir
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 9 жыл бұрын
Sunil kumar View 42 videos on Collections in Java, kzbin.info/www/bejne/qHqWh55_qahjm6M View 5 videos on JSF, kzbin.info/www/bejne/qHLEYqqtjLGqZ7s View 50 videos on Oracle, kzbin.info/www/bejne/pomYiH2ZqdNmgdk View 35 videos on Hibernate, kzbin.info/www/bejne/iYubkpWHaNugmsU View 115 videos on Data Structures, kzbin.info/www/bejne/pXKkmnWHe7h4n80 View 58 videos on Struts, kzbin.info/www/bejne/pIrUpKGofaymh8k View 74 videos on Spring, kzbin.info/www/bejne/j6HWd4drZdKnntU View 41 videos on CRT, kzbin.info/www/bejne/nHW1n36GrtuFZ5Y View 12 videos on JAVA Reflections API & Annotations kzbin.info/www/bejne/eKmmqGOrid2NiNU View 39 videos on Java Real Time Project Implementation on Spring,Struts & Hibernate, kzbin.info/www/bejne/n3zRk2N3nLCNgJI View other videos on ADV JAVA kzbin.info/www/bejne/bmTNfaSKdsekh7c
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 9 жыл бұрын
Durga Software Solutions View 9 videos on ENUM, kzbin.info/www/bejne/imLJfoqtfp53Z6c View 16 videos on Serialization, kzbin.info/www/bejne/mHrdl6Wsmdlqp68
@khushgandhi6638
@khushgandhi6638 7 жыл бұрын
👌👌👌👌💗
@rahulkad5392
@rahulkad5392 2 жыл бұрын
Plz sir reply
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 2 жыл бұрын
Hello Rahul. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
@shrutigoyal600
@shrutigoyal600 5 жыл бұрын
JVM is going to dancee ...!!!
@surveaniket558
@surveaniket558 2 жыл бұрын
sir, upload the video on map
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 2 жыл бұрын
Hello Anil. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
@akshayudeg9467
@akshayudeg9467 2 ай бұрын
Nice sir you are only JVM❤
@pagalshaitan6495
@pagalshaitan6495 7 жыл бұрын
sir please, upload the video on Map and Queue.your explanation is too good.
@jvsnyc
@jvsnyc 4 жыл бұрын
kzbin.info/www/bejne/poSqp5WAbKx9bJo
@rexsam3134
@rexsam3134 3 жыл бұрын
JVM is a blind person.....
@ManishRajlani
@ManishRajlani 10 жыл бұрын
I hv 4 yrs exp of java but never took interest in collection as it seems to be boring topic earlier..But this time...really awesome. Kindly upload map's tutorial too. Thanq so much..:)
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 10 жыл бұрын
Collection Navigation page (Order of topics)durgajobs.com/durgasir-collectionframework-youtube-videos-with-notes.htmlJAVA FAQS Navigation page (Order of topics)durgajobs.com/Java-interview-questions-by-durga-sir.html
@rameshteju69
@rameshteju69 10 жыл бұрын
Durga Software Solutions 404 Not Found
@snigdhareddy938
@snigdhareddy938 7 жыл бұрын
I have read so many articles about comparable and comparator interfaces but unable to understand perfectly. This is the best explanation I have ever read or heard. Hatsoff!!!!!
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 7 жыл бұрын
Hi Snigdha. Thank you very much for your feedback
@vmuralee1061
@vmuralee1061 4 жыл бұрын
Hello Sir, compareTo() method is from comparable interface and its from java.lang package. but how you are using compareTo() method in comparator. how its possible to executed please explain it.
@chithanurivenkatesh5575
@chithanurivenkatesh5575 4 жыл бұрын
Hi Muralee.. Let me take this opportunity to answer your question.... As we know that the 'Integer' wrapper class implements Comparable Interface, we can use compareTo() on an 'Integer' class object. Ex: I1.compareTo(I2); Here, I1 is the object of 'Integer' wrapper class
@418aditya3
@418aditya3 11 ай бұрын
Excellent videos on TreeSet Kudos
@Zana_sh
@Zana_sh 3 жыл бұрын
Awesome Sir !!
@santruptamishra8314
@santruptamishra8314 5 жыл бұрын
In Treeset, duplicates are not allowed, how come 20 is inserted twice?? please explain.
@shubhammhatre4743
@shubhammhatre4743 4 жыл бұрын
We have complete control over comparator () . 20 is inserted twice because we added such code. Jvm will blindly follow that code. It won't check for set's basic property. I hope you get it.
@thelight_
@thelight_ 3 жыл бұрын
Truly Java Guru!
@neerajsharma8610
@neerajsharma8610 7 жыл бұрын
Sir, you explain the thing in superb way. but please upload the video on Map interface and its corresponding classes.
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 7 жыл бұрын
Hi Neeraj. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627
@mousominath5126
@mousominath5126 6 жыл бұрын
kzbin.info/www/bejne/poSqp5WAbKx9bJo
@krish0007
@krish0007 6 жыл бұрын
Awesome..!
@thanujames1668
@thanujames1668 4 жыл бұрын
Can u provide the link for map tutorials
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 4 жыл бұрын
Hello Thanu James. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
@chicku975
@chicku975 7 жыл бұрын
How do you arrange 10, 0, 7, 9 in tree set in descending order ?
@jitendravarshney7918
@jitendravarshney7918 9 жыл бұрын
really supereb
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 9 жыл бұрын
jitendra varshney View 42 videos on Collections in Java, kzbin.info/www/bejne/qHqWh55_qahjm6M View 5 videos on JSF, kzbin.info/www/bejne/qHLEYqqtjLGqZ7s View 50 videos on Oracle, kzbin.info/www/bejne/pomYiH2ZqdNmgdk View 35 videos on Hibernate, kzbin.info/www/bejne/iYubkpWHaNugmsU View 115 videos on Data Structures, kzbin.info/www/bejne/pXKkmnWHe7h4n80 View 58 videos on Struts, kzbin.info/www/bejne/pIrUpKGofaymh8k View 74 videos on Spring, kzbin.info/www/bejne/j6HWd4drZdKnntU View 41 videos on CRT, kzbin.info/www/bejne/nHW1n36GrtuFZ5Y View 12 videos on JAVA Reflections API & Annotations kzbin.info/www/bejne/eKmmqGOrid2NiNU View 39 videos on Java Real Time Project Implementation on Spring,Struts & Hibernate, kzbin.info/www/bejne/n3zRk2N3nLCNgJI
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 9 жыл бұрын
Durga Software Solutions View 9 videos on ENUM, kzbin.info/www/bejne/imLJfoqtfp53Z6c View 16 videos on Serialization, kzbin.info/www/bejne/mHrdl6Wsmdlqp68
@JayHulageri
@JayHulageri 10 жыл бұрын
AWESOME !!!
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 9 жыл бұрын
Jay Hulgeri View 42 videos on Collections in Java, kzbin.info/www/bejne/qHqWh55_qahjm6M View 5 videos on JSF, kzbin.info/www/bejne/qHLEYqqtjLGqZ7s View 50 videos on Oracle, kzbin.info/www/bejne/pomYiH2ZqdNmgdk View 35 videos on Hibernate, kzbin.info/www/bejne/iYubkpWHaNugmsU View 115 videos on Data Structures, kzbin.info/www/bejne/pXKkmnWHe7h4n80 View 58 videos on Struts, kzbin.info/www/bejne/pIrUpKGofaymh8k View 74 videos on Spring, kzbin.info/www/bejne/j6HWd4drZdKnntU View 41 videos on CRT, kzbin.info/www/bejne/nHW1n36GrtuFZ5Y View 12 videos on JAVA Reflections API & Annotations kzbin.info/www/bejne/eKmmqGOrid2NiNU View 39 videos on Java Real Time Project Implementation on Spring,Struts & Hibernate, kzbin.info/www/bejne/n3zRk2N3nLCNgJI View other videos on ADV JAVA kzbin.info/www/bejne/bmTNfaSKdsekh7c
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 9 жыл бұрын
Durga Software Solutions View 9 videos on ENUM, kzbin.info/www/bejne/imLJfoqtfp53Z6c View 16 videos on Serialization, kzbin.info/www/bejne/mHrdl6Wsmdlqp68
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 9 жыл бұрын
Durga Software Solutions Hi, We are very Happy to say Our Expert Faculty Durga Sir's One-to-One Video Sessions on "Core Java with SCJP/OCJP" are available. Shooted from direct Class Room. YOu can access these videos from anywhere anytime. Around 200+ hours training, 178 Videos with clear explanation on every concept. 100% Satisfaction and Perfection in Subject guaranteed. For Demo Sessions Please call or drop a mail to us... DURGASOFT Online Training ph: 91-8885252627 mail :durgasoftonline@gmail.com, durgasoftonlinetraining@gmail.com Demo Sessions on youtube: 1. Language Fundamentals(16 Videos)kzbin.info/www/bejne/m4W7lWtvqZ2hnas 2. Operators & Assignments(7 Videos)kzbin.info/www/bejne/Z3uqgIOeft6bd68 3. Flow Control(6 Videos)kzbin.info/www/bejne/jmfVhGyseZ5gp68 durgasoft.com durgasoftonlinetraining.com facebook.com/durgasoftware durgajobs.com facebook.com/durgajobsinfo
@jayneshahir8815
@jayneshahir8815 6 жыл бұрын
if mycomparator class is using compareTo method shouldn't it have to implement comparable interface ??
@Bigdaddy91982
@Bigdaddy91982 6 жыл бұрын
I'm learning too, according to my understanding, we are implementing the Comparator interface from the java.util package and the Comparator interface has two methods defined, they are compare() and equals(). Therefore, you are implementing the compare method that is already defined in the comparator interface. If you don't need a custom sorting technique, JVM uses compareTo() internally to sort the entities and you don't need to implement comparable interface. Hope this helps!
@jayneshahir8815
@jayneshahir8815 6 жыл бұрын
Vamshi Gudipati yes thats true but I got the correct answer which is all the wrapper class and string class already implements comparable interface which contains compareTo method.😊🤗
TreeSet Details part 6
6:56
Durga Software Solutions
Рет қаралды 116 М.
TreeSet Details part 1 [Collection Framework]
17:08
Durga Software Solutions
Рет қаралды 246 М.
Nastya and balloon challenge
00:23
Nastya
Рет қаралды 65 МЛН
Man Mocks Wife's Exercise Routine, Faces Embarrassment at Work #shorts
00:32
Fabiosa Best Lifehacks
Рет қаралды 5 МЛН
Three Cusors of Java ListIterator (Collection Framework )
19:47
Durga Software Solutions
Рет қаралды 195 М.
Explain about System.out.println();
8:27
DURGA EDUCATION
Рет қаралды 380 М.
OOP 7 | Collections Framework, Vector Class, Enums in Java
26:40
Kunal Kushwaha
Рет қаралды 143 М.
Core Java With OCJP/SCJP: Collections Part-1 || Introduction
59:24
Durga Software Solutions
Рет қаралды 727 М.
Three Cursors of Java - Iterator  (Collection Framework)
17:51
Durga Software Solutions
Рет қаралды 255 М.
Difference between Interface and Absract Class
16:57
DURGA EDUCATION
Рет қаралды 966 М.
LinkedList vs ArrayList in Java Tutorial - Which Should You Use?
11:43
Coding with John
Рет қаралды 593 М.
OpenAI’s New ChatGPT: 7 Incredible Capabilities!
6:27
Two Minute Papers
Рет қаралды 195 М.
StringBuffer Class & Methods in Java with Example
38:26
Smart Programming
Рет қаралды 159 М.