Stream never modifies the source data, it processes it and gives us the result without modifying the original data.
Java: Beginner Guide to Stream API
a thread...
Stream never modifies the source data, it processes it and gives us the result without modifying the original data.
1. Collection. stream()
2. Stream.of(T... values)
3. Arrays. stream()
4. Stream.builder()
Eg:️
1. Intermediate Operations(IO)
2. Terminal Operations(TO)
Here's what the stream pipeline looks like:
Source -> Intermediate Operations -> Terminal Operations
It returns another stream object, after this, we can either call another IO or TO.
Few methods in Stream API for Intermediate operations:
1. filter()
2. map()
3. sorted()
and many more...
filter() - filters out the data based on any boolean condition - below we're filtering elements starting with the letter a.
map() - performs some given operation on the whole data set - below we're converting every element to upper case.
It's the last operation done on stream that's why it's called terminal.
This operation returns the final result.
Few methods in Stream API for Terminal operations:
1. collect()
2. count()
3. forEach()
and many more...
collect() - collects the elements in the given collection as shown below in the first case it is returning data in the form of a list.
count() - counts the no of the element in the stream and returns in the form of long.
More from Vikas Rajput
Learn Core Java, in 30 days as an Absolute Beginner
a roadmap...
Core Java can be Overwhelming, in the beginning!
Let's see what are those topics you should cover and what you can skip in Core Java.
1. Theoretical Concepts (2 days)
- Features of Java
- JVM, JRE & JDK
- Memory areas in Java
- Basics of how Garbage Collection Works.
2. OOP Concepts (3 days)
- Objects and Classes
- Inheritance
- Polymorphism
- Encapsulation
This topic forms the basis of your Java learning. Spent enough time on this topic and understanding it using real-world examples and some
3. Primitives data types, Operators & Arrays (3 days)
- Various primitives/non-primitives data types, operators
- What is their use, How to use them
- Various sizes of data types
- Arrays, practice a few of its problems
- 2D/3D arrays and their use cases, practice a few problems
a roadmap...
Core Java can be Overwhelming, in the beginning!
Let's see what are those topics you should cover and what you can skip in Core Java.
1. Theoretical Concepts (2 days)
- Features of Java
- JVM, JRE & JDK
- Memory areas in Java
- Basics of how Garbage Collection Works.
2. OOP Concepts (3 days)
- Objects and Classes
- Inheritance
- Polymorphism
- Encapsulation
This topic forms the basis of your Java learning. Spent enough time on this topic and understanding it using real-world examples and some
OOPs Concept in Java
— Vikas Rajput (@vikasrajputin) April 4, 2022
a thread...
3. Primitives data types, Operators & Arrays (3 days)
- Various primitives/non-primitives data types, operators
- What is their use, How to use them
- Various sizes of data types
- Arrays, practice a few of its problems
- 2D/3D arrays and their use cases, practice a few problems
You May Also Like
Trading view scanner process -
1 - open trading view in your browser and select stock scanner in left corner down side .
2 - touch the percentage% gain change ( and u can see higest gainer of today)
3. Then, start with 6% gainer to 20% gainer and look charts of everyone in daily Timeframe . (For fno selection u can choose 1% to 4% )
4. Then manually select the stocks which are going to give all time high BO or 52 high BO or already given.
5. U can also select those stocks which are going to give range breakout or already given range BO
6 . If in 15 min chart📊 any stock sustaing near BO zone or after BO then select it on your watchlist
7 . Now next day if any stock show momentum u can take trade in it with RM
This looks very easy & simple but,
U will amazed to see it's result if you follow proper risk management.
I did 4x my capital by trading in only momentum stocks.
I will keep sharing such learning thread 🧵 for you 🙏💞🙏
Keep learning / keep sharing 🙏
@AdityaTodmal
1 - open trading view in your browser and select stock scanner in left corner down side .
2 - touch the percentage% gain change ( and u can see higest gainer of today)
Making thread \U0001f9f5 on trading view scanner by which you can select intraday and btst stocks .
— Vikrant (@Trading0secrets) October 22, 2021
In just few hours (Without any watchlist)
Some manual efforts u have to put on it.
Soon going to share the process with u whenever it will be ready .
"How's the josh?"guys \U0001f57a\U0001f3b7\U0001f483
3. Then, start with 6% gainer to 20% gainer and look charts of everyone in daily Timeframe . (For fno selection u can choose 1% to 4% )
4. Then manually select the stocks which are going to give all time high BO or 52 high BO or already given.
5. U can also select those stocks which are going to give range breakout or already given range BO
6 . If in 15 min chart📊 any stock sustaing near BO zone or after BO then select it on your watchlist
7 . Now next day if any stock show momentum u can take trade in it with RM
This looks very easy & simple but,
U will amazed to see it's result if you follow proper risk management.
I did 4x my capital by trading in only momentum stocks.
I will keep sharing such learning thread 🧵 for you 🙏💞🙏
Keep learning / keep sharing 🙏
@AdityaTodmal