#96 Need of Stream API in Java

  Рет қаралды 43,746

Telusko

Telusko

Жыл бұрын

Telusko Courses:
Spring and Microservices Live Course : bit.ly/springmslive
Coupon: TELUSKO25 (25% Discount)
Industry-Ready Java Spring Microservices Developer Live : bit.ly/JavaMS2
Complete Java Developer Course : bit.ly/Comp-Java-Dev-2
Coupon: TELUSKO20 (20% Discount)
Udemy Courses:
Java:- bit.ly/JavaUdemyTelusko
Spring:- bit.ly/SpringUdemyTelusko
Java For Programmers:- bit.ly/javaProgrammers
For More Queries WhatsApp or Call on : +919008963671
website : courses.telusko.com/
In this lecture we will learn:
- What is Stream API?
- Method in a stream interface
- Difference between normal and enhanced for loop
- forEach method in a list interface
#1
- Stream API is the concept introduced in Java 1.8 version.
- The Stream API is used to process collections of objects.
- Stream is a sequence of objects that supports various methods to produce the desired result.
- asList() is a method that gives a list that belongs to a class array.
- Stream is an interface that belongs to java.lang package.
- Stream interface provides a lot of methods like filter(), map(), reduce(), etc.
- A stream is not a data structure instead it takes input from Collections like arrays.
#2
- Normal for loop iterates over the elements one by one whereas enhanced for loop array itself give a value and that value goes into a variable say n.
- We can also print all the values present in an array by using the forEach method().
- forEach method gives one value at a time and we can save that value in a variable say n and print it.
nums.forEach( n- System.out.println(n));
- forEach method is part of a list interface, that gives one value at a time and then you can perform operations on it.
Github repo : github.com/navinreddy20/Javac...
Instagram : / navinreddyofficial
Linkedin : / navinreddy20
Discord : / discord
Java:- bit.ly/JavaUdemyTelusko
Spring:- bit.ly/SpringUdemyTelusko
More Learning :
Java :- bit.ly/3x6rr0N
Python :- bit.ly/3GRc7JX
Django :- bit.ly/3MmoJK6
JavaScript :- bit.ly/3tiAlHo
Node JS :- bit.ly/3GT4liq
Rest Api :-bit.ly/3MjhZwt
Servlet :- bit.ly/3Q7eA7k
Spring Framework :- bit.ly/3xi7buh
Design Patterns in Java :- bit.ly/3MocXiq
Docker :- bit.ly/3xjWzLA
Blockchain Tutorial :- bit.ly/3NSbOkc
Corda Tutorial:- bit.ly/3thbUKa
Hyperledger Fabric :- bit.ly/38RZCRB
NoSQL Tutorial :- bit.ly/3aJpRuc
Mysql Tutorial :- bit.ly/3thpr4L
Data Structures using Java :- bit.ly/3MuJa7S
Git Tutorial :- bit.ly/3NXyCPu
Donation:
PayPal Id : navinreddy20
www.telusko.com

Пікірлер: 6
@aakashjana6225
@aakashjana6225 Жыл бұрын
When I watch Navin sir's explanation I feel like I have already understood the concept before in the first 1min of the video itself. Navin sir you are my inspiration to learn not only the concepts but also your teaching technique , it helps me teach others and forge my memory.
@WithSolanki
@WithSolanki Жыл бұрын
Sir helped me in being a java developer. Keep it up sir 🎉
@a-man--
@a-man-- 10 ай бұрын
Can we use if condition in lambda?
@bareeq5969
@bareeq5969 4 ай бұрын
Thank you
@user-lr9ln2zb8d
@user-lr9ln2zb8d 9 ай бұрын
More Theory makes its easy compare then practical 😅
@araisininthesun3797
@araisininthesun3797 9 ай бұрын
😂
#97 forEach Method in Java
4:49
Telusko
Рет қаралды 35 М.
#95 Comparator vs Comparable in Java
15:43
Telusko
Рет қаралды 130 М.
КИРПИЧ ОБ ГОЛОВУ #shorts
00:24
Паша Осадчий
Рет қаралды 6 МЛН
MINHA IRMÃ MALVADA CONTRA O GADGET DE TREM DE DOMINÓ 😡 #ferramenta
00:40
#98 Stream API in Java
9:12
Telusko
Рет қаралды 36 М.
Stream API in Java
26:04
Telusko
Рет қаралды 256 М.
The ARM chip race is getting wild… Apple M4 unveiled
4:07
Fireship
Рет қаралды 490 М.
AZ-900 Episode 17 | Azure Serverless Computing Services | Functions, Logic Apps, Event Grid
9:54
Adam Marczak - Azure for Everyone
Рет қаралды 189 М.
#5 What is Spring Boot?
12:12
Telusko
Рет қаралды 10 М.
Devin AI replacing Software Engineers?
11:40
Telusko
Рет қаралды 146 М.
Java Database Connectivity | JDBC
20:34
Telusko
Рет қаралды 179 М.
Creepy Samsung Alarm cannot be turned off 😱🤣 #shorts
0:14
Adani Family
Рет қаралды 1 МЛН
Как открыть дверь в Jaecoo J8? Удобно?🤔😊
0:27
Суворкин Сергей
Рет қаралды 1 МЛН
СЛОМАЛСЯ ПК ЗА 2000$🤬
0:59
Корнеич
Рет қаралды 1,9 МЛН
M4 iPad Pro Impressions: Well This is Awkward
12:51
Marques Brownlee
Рет қаралды 4,5 МЛН