У нас вы можете посмотреть бесплатно #93 Set in Java или скачать в максимальном доступном качестве, видео которое было загружено на ютуб. Для загрузки выберите вариант из формы ниже:
Если кнопки скачивания не
загрузились
НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием видео, пожалуйста напишите в поддержку по адресу внизу
страницы.
Спасибо за использование сервиса ClipSaver.ru
Check out our courses: Java Full Stack and Spring AI - https://go.telusko.com/JavaSpringAI Coupon: TELUSKO10 (10% Discount) DevOps with AWS: From Basics to Mastery : https://go.telusko.com/DevOpsAWS Coupon: TELUSKO10 (10% Discount) Master Java Spring Development : https://go.telusko.com/masterjava Coupon: TELUSKO20 (20% Discount) For More Queries WhatsApp or Call on : +919008963671 Udemy Courses: Spring: https://go.telusko.com/udemyteluskosp... Java:- https://go.telusko.com/udemyteluskojava Java Spring:- https://go.telusko.com/Udemyjavaspring Java For Programmers:- https://go.telusko.com/javaProgrammers Python : https://go.telusko.com/udemyteluskopy... Git : https://go.telusko.com/udemyteluskogit Docker : https://go.telusko.com/udemyteluskodo... website : https://courses.telusko.com/ In this lecture we will learn: Set interface in the collection Syntax of set interface HashSet and TreeSet in a set collection Iterable interface in Collection How to use an iterator for iterating values #1 The collection interface is also extended by the set interface. List in the collection supports repeated values. The set is an interface in Collection that supports only unique values. Package set in the collection is java.util.Set; Set extends collection but the class which implements set is different and the class name is HashSet. We can define its datatype through generics as well such as greater then bracket Integer less then bracket #2 Set also uses the add() method to insert the values in a set. Set does not print the repeated values. It prints the same value only one time. Set does not maintain the sequence, it gives values in any random order. The set does not sort the values Set also does not support an index for values. #3 Instead of using the class HashSet, if we will use the TreeSet, it will give values in sorted order. All the elements in a TreeSet are sorted as it extends AbstractSet and implements NavigableSet and further NavigableSet extends Sorted Set. #4 Collection interface extends an Iterable interface through which we can iterate between the elements by using enhanced for loop, etc. Iterable interface contains a method called iterator(). Iterator returns an iterator object that got all the values from a set. It can be in place of loops. It has also a method called next() that gives the values of the next element. It has a method hasNext() that helps the loop to know that the set contains a value of the next element. while(values.hasNext()) System.out.println(values.next()); Github repo : https://github.com/navinreddy20/Javac... Java:- https://bit.ly/JavaUdemyTelusko Spring:- https://bit.ly/SpringUdemyTelusko More Learning : Java :- https://bit.ly/3x6rr0N Python :- https://bit.ly/3GRc7JX Django :- https://bit.ly/3MmoJK6 JavaScript :- https://bit.ly/3tiAlHo Node JS :- https://bit.ly/3GT4liq Rest Api :-https://bit.ly/3MjhZwt Servlet :- https://bit.ly/3Q7eA7k Spring Framework :- https://bit.ly/3xi7buh Design Patterns in Java :- https://bit.ly/3MocXiq Docker :- https://bit.ly/3xjWzLA Blockchain Tutorial :- https://bit.ly/3NSbOkc Corda Tutorial:- https://bit.ly/3thbUKa Hyperledger Fabric :- https://bit.ly/38RZCRB NoSQL Tutorial :- https://bit.ly/3aJpRuc Mysql Tutorial :- https://bit.ly/3thpr4L Data Structures using Java :- https://bit.ly/3MuJa7S Git Tutorial :- https://bit.ly/3NXyCPu Donation: PayPal Id : navinreddy20 https://www.telusko.com