The Tech Stack . Net
Sharing my Java and Kotlin coding experiments in this blog
Streams allows us to generate endless progression of discrete objects. There are couple of methods available in Java which will help us to generate infinite sequences.
08 Apr 2018
Recipes for Optional
Optional allows us to wrap a nullable object in it so we can make a method to return Optional instead of bare object. There is a possibility that below method...
03 Apr 2018
Functions cheat sheet
Functional interface will have single abstract method and they provide target types for lambda expressions. There are many functional interfaces in Java and they all are available in java.util.function package....
28 Mar 2018
Reduce stream to single value
Lets say we want to return the sum of all numbers in a list, there are multiple ways in Java we can achieve this, one of the way is using...
24 Mar 2018
Quick way to create List, Set and Map
Java 9 introduced of() static methods in List, Map and Set interfaces. This method will help us to create collection easily. I got surprised to see this method, it is...
21 Mar 2018
Using consumer functional interface
This article will explain the basics of using consumer functional interface. Consume is one of the many available functional interfaces in Java. This interface can be used when we need...
17 Mar 2018
Create Maven project in GitHub
If you are looking to publish your first Maven project to gitHub then this article will help you to get started with that. I am going to explain the steps...
14 Mar 2018
Fixed Thread Pool using Executor framework
In this article we are looking at the Fixed thread pool implementation. This thread pool creates a fixed number of threads and reuses them as the tasks are completed and...
10 Mar 2018
Producer and Consumer with Bounded Blocked Queue
Producer and consumers are two independent entities works together on the queue. Producer inserts elements into the tail of the queue and consumer removes them from the head of the...
07 Mar 2018
Never miss any
, subscribe to my newsletter